django-xslt

Software Screenshot:
django-xslt
Software Details:
Version: 0.4.5
Upload Date: 11 May 15
Developer: Nic Ferrier
Distribution Type: Freeware
Downloads: 3

Rating: nan/5 (Total Votes: 0)

django-xslt is a replacement for Django's template system based on XSLT.

XSLT is a powerful templating lanaguage and this package extends it further with the ability to render to XML any Django context object (including querysets).

Some XSLT examples

Iterating over a queryset context object and rendering the username and the id.

< xsl:for-each select="xdjango:users()//user" >
 < span id="{@id}">< /span >
< /xsl:for-each >


Spitting out the MEDIA_ROOT from the Django settings file.

< img src="{xdjango:settings.MEDIA_ROOT()}/images/boo.jpg"/ >

Project structure

This is a contrib package and as such it designed to be installed into Django itself.

This project comes with a demoapp which is included to illustrate how to add xslt to any project but also to facilitate unit testing of the current code.

Requirements:

  • Python
  • Django

Other Software of Developer Nic Ferrier

PyProxyFS
PyProxyFS

11 May 15

md
md

11 May 15

Comments to django-xslt

Comments not found
Add Comment
Turn on images!