{ "info": { "author": "Martijn Faassen", "author_email": "faassen@startifact.com", "bugtrack_url": null, "classifiers": [], "description": "more.chameleon: Chameleon template integration for Morepath\n===========================================================\n\n``more.chameleon`` is an extension for Morepath_ that adds Zope Page\nTemplate (ZPT) support for the ``.pt`` extension, using the Chameleon_\ntemplate engine.\n\nFor details on the ZPT template language see the `Chameleon language\nreference`_.\n\nExample usage::\n\n from more.chameleon import ChameleonApp\n\n class App(ChameleonApp):\n pass\n\n @App.path(path='persons/{name}')\n class Person(object):\n def __init__(self, name):\n self.name = name\n\n @App.template_directory()\n def get_template_directory():\n return 'templates'\n\n @App.html(model=Person, template='person.pt')\n def person_default(self, request):\n return {'name': self.name}\n\nand then in ``person.pt`` (in the ``templates`` subdirectory)::\n\n \n
\nHello ${name}!
\n \n \n\nDuring development it can be helpful to have Chameleon reload templates\nautomatically after a change. To enable this feature use the\n``MOREPATH_TEMPLATE_AUTO_RELOAD`` environment variable.\n\nYou can enable it for your process::\n\n MOREPATH_TEMPLATE_AUTO_RELOAD=1 python run.py\n\nOr for your shell::\n\n export MOREPATH_TEMPLATE_AUTO_RELOAD=1\n python run.py\n\nTo further control Chameleon rendering you can define a ``chameleon`` setting\nsection in your app. For instance, here is how you turn on Chameleon's\n``debug`` functionality::\n\n @App.setting_section(section='chameleon')\n def get_setting_section():\n return {'debug': True}\n\nFor details on Chameleon configuration options, consult the\nconfiguration keyword arguments in the `Chameleon API reference`_.\n\n.. _Morepath: http://morepath.readthedocs.org\n\n.. _Chameleon: https://chameleon.readthedocs.org/\n\n.. _`Chameleon language reference`: https://chameleon.readthedocs.org/en/latest/reference.html\n\n.. _`Chameleon API reference`: https://chameleon.readthedocs.org/en/latest/library.html#api-reference\n\nCHANGES\n*******\n\n0.2 (2016-01-23)\n================\n\n- The ``MOREPATH_TEMPLATE_AUTO_RELOAD`` environment variable may now be used\n to control the auto reloading behavior of Chameleon.\n\n See README.rst for details.\n\n Fixes Issue #1: https://github.com/morepath/more.chameleon/issues/1\n\n\n0.1 (2015-04-09)\n================\n\n- Initial public release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/more.chameleon", "keywords": "morepath chameleon", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "more.chameleon", "package_url": "https://pypi.org/project/more.chameleon/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/more.chameleon/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/more.chameleon" }, "release_url": "https://pypi.org/project/more.chameleon/0.2/", "requires_dist": null, "requires_python": null, "summary": "Chameleon template integration for Morepath", "version": "0.2" }, "last_serial": 1918973, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "dbee1f80e2e3c8dbe80b2412192a70d6", "sha256": "6959ba210c118e989b83f0fd0946b6a528523859c08bbf1491b0900a06a0fdb3" }, "downloads": -1, "filename": "more.chameleon-0.1.tar.gz", "has_sig": false, "md5_digest": "dbee1f80e2e3c8dbe80b2412192a70d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6650, "upload_time": "2015-04-09T09:45:29", "url": "https://files.pythonhosted.org/packages/ce/fe/6ed9f4829cdb4bf7fae6746af6e0bdbee760979f55daac7ccde28a601523/more.chameleon-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "96f3206dc0b6135d69b347aaebefa51d", "sha256": "db29b4146a9afb9ba00b24bf46902afd5599e18482062cac069a262cdfeb8f7b" }, "downloads": -1, "filename": "more.chameleon-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "96f3206dc0b6135d69b347aaebefa51d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8492, "upload_time": "2016-01-23T14:07:30", "url": "https://files.pythonhosted.org/packages/8d/5a/45393944eeb83acd38a3d65b993f7c6e6931b9a4309aa8b8cff3b3ee6462/more.chameleon-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "09474c439972e672779d0e6bf1725037", "sha256": "c09ff83687429bfa87d4e0c6b85103afad60e3804c81710068459d96824f374a" }, "downloads": -1, "filename": "more.chameleon-0.2.tar.gz", "has_sig": false, "md5_digest": "09474c439972e672779d0e6bf1725037", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7439, "upload_time": "2016-01-23T14:07:23", "url": "https://files.pythonhosted.org/packages/b0/f9/05bdb876274ae2d8927b226b0e74d971962e2ff5164815ae6aae0539c4b3/more.chameleon-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "96f3206dc0b6135d69b347aaebefa51d", "sha256": "db29b4146a9afb9ba00b24bf46902afd5599e18482062cac069a262cdfeb8f7b" }, "downloads": -1, "filename": "more.chameleon-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "96f3206dc0b6135d69b347aaebefa51d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8492, "upload_time": "2016-01-23T14:07:30", "url": "https://files.pythonhosted.org/packages/8d/5a/45393944eeb83acd38a3d65b993f7c6e6931b9a4309aa8b8cff3b3ee6462/more.chameleon-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "09474c439972e672779d0e6bf1725037", "sha256": "c09ff83687429bfa87d4e0c6b85103afad60e3804c81710068459d96824f374a" }, "downloads": -1, "filename": "more.chameleon-0.2.tar.gz", "has_sig": false, "md5_digest": "09474c439972e672779d0e6bf1725037", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7439, "upload_time": "2016-01-23T14:07:23", "url": "https://files.pythonhosted.org/packages/b0/f9/05bdb876274ae2d8927b226b0e74d971962e2ff5164815ae6aae0539c4b3/more.chameleon-0.2.tar.gz" } ] }