{ "info": { "author": "Mikko Ohtamaa", "author_email": "mikko.ohtamaa@twinapex.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents:: :depth: 2\n\ncollective.templateengines is an template engine abstraction layer for Python. \nIt defines generic Zope interfaces for communicating with various Python template engines \nto achieve higher code reuse value.\n\nThis package is still much in development. All contributions and comments are welcome.\n\nFeatures\n--------\n\ncollective.templateengines helps you to achieve\n\n* Easy, pluggable, template language switching. Write template tag code only once and use it across all template engines\n using abstracted tag plug-ings\n\n* Clean your codebase from template engine dependencies\n\n* Generic error and warning reporting mechanism across template engines\n\n* EGG deployment and easy_install support from PyPi repository\n\n* Interfaces defined using standard `Zope interfaces `_ package\n\n* Backends for Django template Language, Cheetah and Jinja2\n\n* Unit tests\n\n\nMotivation\n----------\n\nAll template engines have their shortcomings. Sooner or later you want to try yet another engine,\nor someone else wants to use another template engine within your project. This package\nis aimed to make that transition as smooth as possible.\n\nInstallation\n------------\n\n- Install collective.templateengines egg\n\n- Install any of following template engine eggs: Django, Jinja2, Cheetah\n\nUsage\n-----\n\nPlease take a look on `collective.easytemplate `_ package how to support switching\nbetween template engines and registering tags for them.\n\nThe following example shows how one can switch between Django and Cheetah template engines with one line of change.\nNaturally, the templates themselves need to be refactored.\n\nCheetah::\n\n from collective.templateengines.backends import cheetah\n\n engine = cheetah.Engine()\n context = DictionaryContext({\"foo\":\"bar\"})\n template, syntax_errors = engine.loadString(\"Show variable $foo\", False)\n result, evaluation_errors = template.evaluate(context)\n \nDjango::\n\n from collective.templateengines.backends import djangotemplates\n\n engine = djangotemplates.Engine()\n context = DictionaryContext({\"foo\":\"bar\"})\n template, syntax_errors = engine.loadString(\"Show variable {{ foo }}\", False)\n result, evaluation_errors = template.evaluate(context)\n \n \nTags\n----\n\ncollective.templateengine uses term tag to refer to functions which you can use in the template engine context. \nIn the future tags are indended to be expanded to cover template language structures as well.\n\ncollective.templateengines does not come with any tags out of the box. To define tags, I recommend\nyou to take a look on collective.easytemplate package.\n\n- Tags provide collective.templateengines.interfaces.ITag interface\n\n- Tags are registered to the template engine using Engine.addTag() function.\n\n\nProblems\n--------\n\n* Cheetah architecture lacks separate exposed compiling and evaluating phases\n\n* Cheetah exposes the full Python namespace to templates by default, making it hard to secure it\n\n* Cheetah cannot traverse Zope functions or attributes\n\nExamples\n--------\n\nPython Template Engines is used in \n\n* `Easy Template product `_ for Plone.\n\nLinks\n-----\n\n`Jinja2 template engines `_\n\n`Django templates `_\n\n`Cheetah template engine `_\n\nSource code\n-----------\n\n* https://svn.plone.org/svn/collective/collective.templateengines/trunk\n\nAuthors\n-------\n\n`mFabrik Research Oy `_ - Python and Plone professionals for hire.\n\n* `mFabrik web site `_ \n\n* `mFabrik mobile site `_ \n\n* `Blog `_\n\n* `More about Plone `_ \n\n\nChangelog\n---------\n\n0.3.5 (2013-05-07)\n==================\n\n* first import for plone 4.3\n [vangheem]\n\n\n0.3.2 - 0.3.4\n=============\n\n* Fixed various problems when context or HTTP request was\n not available or they were \"special\" in Plone templates [miohtama] \n \n* Fixed compatibility issues with LinguaPlone [miohtama]\n\n0.3.1 - 0.3.2\n=============\n\n* Fixed unicode problems with Archetypes accessors\n\n* Documentation clean ups\n\n\n0.3.0 - 0.3.1\n=============\n\n* Fixed problem in plone.py with problematic Archetypes schema fields\n\n0.1.1 - 0.3.0\n=============\n\n* Major rework\n\n0.1 - 0.1.1\n=============\n\n* Fixing PyPi deployment problems\n\n0.1 \n=============\n\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.twinapex.com/for-developers/open-source/for-plone/easy-template", "keywords": "template templates engine python interface zope cheetah django backend utils generic", "license": "License :: OSI Approved :: BSD License", "maintainer": null, "maintainer_email": null, "name": "collective.templateengines", "package_url": "https://pypi.org/project/collective.templateengines/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.templateengines/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.twinapex.com/for-developers/open-source/for-plone/easy-template" }, "release_url": "https://pypi.org/project/collective.templateengines/0.3.5/", "requires_dist": null, "requires_python": null, "summary": "Template engine abstraction layer for Python", "version": "0.3.5" }, "last_serial": 788230, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5d385e96781834185279ad87469a2c4a", "sha256": "cad1648be19bbd4c9091d1ea38fbb4372b7cba5f9a23d45cf1166f8ba70aaf4b" }, "downloads": -1, "filename": "collective.templateengines-0.1-py2.5.egg", "has_sig": false, "md5_digest": "5d385e96781834185279ad87469a2c4a", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 26457, "upload_time": "2008-09-30T02:07:30", "url": "https://files.pythonhosted.org/packages/7d/47/748c4613005744e3efb5fe4135e7677f1925bcbccaa304f3cd507db5ff82/collective.templateengines-0.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "28103f99af511d3bfc6f1be74d8126d6", "sha256": "997d93f00b873fac2b9b55faedb9da4063f81694552fb7f40832fb527224390a" }, "downloads": -1, "filename": "collective.templateengines-0.1.tar.gz", "has_sig": false, "md5_digest": "28103f99af511d3bfc6f1be74d8126d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7537, "upload_time": "2008-09-30T02:07:30", "url": "https://files.pythonhosted.org/packages/2d/7a/9749d4686d65dcc8b7547b019f3dea776e6b24dbb6da945ac2618dbfc984/collective.templateengines-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "34c29605d9919e9d29c312e44cd5654c", "sha256": "b9ab947c954c2ce39f617778d41c6ecc65252fdf6c691c6f2276ad1c02a1f226" }, "downloads": -1, "filename": "collective.templateengines-0.1.1.tar.gz", "has_sig": false, "md5_digest": "34c29605d9919e9d29c312e44cd5654c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7559, "upload_time": "2008-11-09T21:13:55", "url": "https://files.pythonhosted.org/packages/01/37/8785f8b936dee65d9e8fd8666d8240700191a0abf874d325eb9f0afe2028/collective.templateengines-0.1.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "636a89ca8eb3edd6b91b51faf6e0c618", "sha256": "dd58bbad08e6b9aa04b0018910f8472dc246d4a11b1a162ef7ce93cf5a1eee75" }, "downloads": -1, "filename": "collective.templateengines-0.3.0.tar.gz", "has_sig": false, "md5_digest": "636a89ca8eb3edd6b91b51faf6e0c618", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10095, "upload_time": "2009-04-07T02:48:31", "url": "https://files.pythonhosted.org/packages/61/58/fa853764390d6ec00dd4626e9e30d1442cc53c00ad9ba9eb93824b488f1b/collective.templateengines-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "85ed50cafe6a9a422c3361dc980fa79e", "sha256": "0d655dc3c7daa2e19526e6bb88027d97b9d35251928d1bf90e5b8f7b99110b8a" }, "downloads": -1, "filename": "collective.templateengines-0.3.1.tar.gz", "has_sig": false, "md5_digest": "85ed50cafe6a9a422c3361dc980fa79e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10239, "upload_time": "2009-04-29T05:00:58", "url": "https://files.pythonhosted.org/packages/a1/bd/837c2221423be07ad6c2a5172ea8a364d425b05dac601a8c890ac5a52f46/collective.templateengines-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "cba7d4e20742ac5b0b1f7e062ee88a2f", "sha256": "3843e7bdf83c808d74630061a17aefdecaabed5928c841f63faec908448dec34" }, "downloads": -1, "filename": "collective.templateengines-0.3.2.tar.gz", "has_sig": false, "md5_digest": "cba7d4e20742ac5b0b1f7e062ee88a2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10677, "upload_time": "2009-08-07T12:21:48", "url": "https://files.pythonhosted.org/packages/6e/20/ec44d89076768eec62486dce11d88506fc5b053b88b3fa112d479e80dac9/collective.templateengines-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "4f709278591aca0bf143b238cf691143", "sha256": "d596f7a2fdf604b945c676dd318e8c97ac7f4c3d524d3725b39a592360421493" }, "downloads": -1, "filename": "collective.templateengines-0.3.3.tar.gz", "has_sig": false, "md5_digest": "4f709278591aca0bf143b238cf691143", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10807, "upload_time": "2009-10-07T10:05:52", "url": "https://files.pythonhosted.org/packages/15/1a/fba609074f67d9678e681758e41359c1467e0b7efe3a823ed5c901919d91/collective.templateengines-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "c18670d11a7e248f6149aec1a8905df5", "sha256": "743b4afc7f46e70b75a72b897608c11dc1c7412ba4342ff75d60234773ef3e55" }, "downloads": -1, "filename": "collective.templateengines-0.3.4.tar.gz", "has_sig": false, "md5_digest": "c18670d11a7e248f6149aec1a8905df5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10876, "upload_time": "2010-03-16T08:31:54", "url": "https://files.pythonhosted.org/packages/91/07/a923f55489a9ef8c38017a2f3eeb9b3bd12d9353704fe2917446883ba290/collective.templateengines-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "2f7a3108640c06d506cc7595d6a60e93", "sha256": "126f85710bc56b7b04125308341d82077721205df8c9815010eea672b66d52d7" }, "downloads": -1, "filename": "collective.templateengines-0.3.5.zip", "has_sig": false, "md5_digest": "2f7a3108640c06d506cc7595d6a60e93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25926, "upload_time": "2013-05-07T10:51:13", "url": "https://files.pythonhosted.org/packages/fd/fb/b918f362361ffe5fd8e15c926b75e8697f6218c010d586997928ae20e2ec/collective.templateengines-0.3.5.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f7a3108640c06d506cc7595d6a60e93", "sha256": "126f85710bc56b7b04125308341d82077721205df8c9815010eea672b66d52d7" }, "downloads": -1, "filename": "collective.templateengines-0.3.5.zip", "has_sig": false, "md5_digest": "2f7a3108640c06d506cc7595d6a60e93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25926, "upload_time": "2013-05-07T10:51:13", "url": "https://files.pythonhosted.org/packages/fd/fb/b918f362361ffe5fd8e15c926b75e8697f6218c010d586997928ae20e2ec/collective.templateengines-0.3.5.zip" } ] }