{ "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

Hello world!

\n\n.. [#] http://docs.djangoproject.com/en/dev/ref/templates/api/\n.. [#] http://genshi.edgewall.org/wiki/Documentation\n\nOutput Type Autodetection\n=========================\n\nBecause Genshi is based on abstract markup streams, it is possible for a\ntemplate to be rendered to multiple output representations (such as HTML or\nXHTML). The decision of which to render is usually based on the HTTP\n``Accept`` header. The ``shortcuts.render_to_response_autodetect`` function\nimplements a reasonable algorithm for autodetecting output formats, and\nserves as an example for writing custom encoders in general.\n\nFilters\n=======\n\nArbitrary Genshi filter functions may be registered, using the\n``GENSHI_TEMPLATE_FILTERS`` setting. They will be applied to generated\ntemplate streams by the shortcut functions prior to rendering the\nstreams. Example filters are included in the ``django_genshi.filters``\nmodule.", "description_content_type": null, "docs_url": "https://pythonhosted.org/django-genshi/", "download_url": "http://pypi.python.org/pypi/django-genshi/1.1.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://launchpad.net/django-genshi", "keywords": "django,genshi", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "django-genshi", "package_url": "https://pypi.org/project/django-genshi/", "platform": "Platform Independent", "project_url": "https://pypi.org/project/django-genshi/", "project_urls": { "Download": "http://pypi.python.org/pypi/django-genshi/1.1.3", "Homepage": "https://launchpad.net/django-genshi" }, "release_url": "https://pypi.org/project/django-genshi/1.1.3/", "requires_dist": null, "requires_python": null, "summary": "Django integration for Genshi", "version": "1.1.3" }, "last_serial": 100008, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "07b684537a84337e6de0a219c3585007", "sha256": "815e7855b8fa8ab0548db3d65d47afe290df2bed1a8a027a7a0fd3f8f67f8a48" }, "downloads": -1, "filename": "django-genshi-1.0.0.tar.gz", "has_sig": true, "md5_digest": "07b684537a84337e6de0a219c3585007", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2261, "upload_time": "2008-09-24T00:59:45", "url": "https://files.pythonhosted.org/packages/18/27/17ad58c8fb93357c097076d63a2023f203f7cdbac7b82e9b4899184075a3/django-genshi-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "26a6d025c0175d91bf76a7aa62cd3225", "sha256": "9bc1c00992bf3ce0e75113a62ca90738fbc2e42a4846668902c582a76dc6b105" }, "downloads": -1, "filename": "django-genshi-1.1.0.tar.gz", "has_sig": true, "md5_digest": "26a6d025c0175d91bf76a7aa62cd3225", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5109, "upload_time": "2008-09-26T23:37:01", "url": "https://files.pythonhosted.org/packages/b4/c2/724be7c8e9b4fed6723363b84fd184d382dd2680e3d72bf77fde453e00fd/django-genshi-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "d9c7b5805058488791e483a7a99739fc", "sha256": "ceb749304655553a9f3a2496e6ca90e27ba821a6cc0312266b30125f17f54b22" }, "downloads": -1, "filename": "django-genshi-1.1.1.tar.gz", "has_sig": true, "md5_digest": "d9c7b5805058488791e483a7a99739fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5860, "upload_time": "2008-09-27T19:05:58", "url": "https://files.pythonhosted.org/packages/3e/28/39e98652591ff3c3b828ada564eb583cf05927cec30dceb9f0102b431146/django-genshi-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "007cc52aa5e65b18c225ed39ece4bb9b", "sha256": "3bafa4ec6a4c0c8b9831700e2feaacb8481cc95be0cb5b5d469c417fad92ff33" }, "downloads": -1, "filename": "django-genshi-1.1.2.tar.gz", "has_sig": true, "md5_digest": "007cc52aa5e65b18c225ed39ece4bb9b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6486, "upload_time": "2008-09-30T19:58:29", "url": "https://files.pythonhosted.org/packages/c1/7d/712b8c29d38a93c0f3bea02346cd8938185d84fd389966a602da49482e84/django-genshi-1.1.2.tar.gz" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "e92c90aab1fc6618791736039d986a3c", "sha256": "3955f7aabff1c3f5ef0eba6e8a461318bd57e300b579f4bd85c82d66676f88dd" }, "downloads": -1, "filename": "django-genshi-1.1.3.tar.gz", "has_sig": true, "md5_digest": "e92c90aab1fc6618791736039d986a3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6894, "upload_time": "2009-04-19T00:51:22", "url": "https://files.pythonhosted.org/packages/dc/02/209cb7bddef4d33395286bd80765c4d31b7931d3fb596a7033d33835cdbb/django-genshi-1.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e92c90aab1fc6618791736039d986a3c", "sha256": "3955f7aabff1c3f5ef0eba6e8a461318bd57e300b579f4bd85c82d66676f88dd" }, "downloads": -1, "filename": "django-genshi-1.1.3.tar.gz", "has_sig": true, "md5_digest": "e92c90aab1fc6618791736039d986a3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6894, "upload_time": "2009-04-19T00:51:22", "url": "https://files.pythonhosted.org/packages/dc/02/209cb7bddef4d33395286bd80765c4d31b7931d3fb596a7033d33835cdbb/django-genshi-1.1.3.tar.gz" } ] }