{ "info": { "author": "John Millikin", "author_email": "jmillikin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML" ], "description": ":Author: John Millikin\n:Copyright: This document has been placed in the public domain.\n\nOverview\n========\n\n``django-genshi`` is a small wrapper library around Genshi that provides\nan API similar to ``django.template``. Included are imitations of\n``Context`` and ``RequestContext``. There is also an implemention of the\nDjango template loader system adapted for Genshi, and a selection of\nshortcut functions.\n\nUsage\n=====\n\nSee the `Django` [#]_ and `Genshi` [#]_ documentation for detailed usage notes.\nThe API of ``django-genshi`` is intended to mirror that of Django, while\nwriting or manipulating the templates will require knowledge of Genshi.\n\nGenshi cannot use Django's default template loaders -- to work around this,\nthe ``app_directories``, ``eggs``, and ``filesystem`` loaders have been\nmodified and included in the ``django_genshi.loaders`` package. To avoid\nconflicts with Django's template system, place such loaders in the\n``GENSHI_TEMPLATE_LOADERS`` setting.\n\nExample::\n\n >>> from django_genshi import render_to_response\n >>> response = render_to_response ('template_name.xml', {\"name\": \"world\"})\n >>> print response.content\n