{ "info": { "author": "Livio Ribeiro", "author_email": "livioribeiro@outlook.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: CherryPy", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=================================\r\nlribeiro.cherrypy.templating.mako\r\n=================================\r\n\r\nMako renderer for ``lribeiro.cherrypy.templating``\r\n\r\nIt has two optional config entries:\r\n\r\n- templating.mako.template_directories: can be a path to the templates directory, absolute (with leading slash) or relative to the root module location, or a list of paths. If none is given, ``{root directory}/templates`` is used.\r\n\r\n- templating.mako.config: any additional arguments to be passed to the TemplateLookup constructor\r\n\r\nDeveloped under Python3.4 and tested against Python2.7, Python3.4 and pypy.\r\n\r\nUsage:\r\n------\r\n\r\n.. sourcecode:: python\r\n\r\n import cherrypy\r\n\r\n from lribeiro.cherrypy.templating import template\r\n from lribeiro.cherrypy.templating.mako import renderer\r\n\r\n\r\n class Root(object):\r\n @cherrypy.expose\r\n @template('index.html')\r\n def index(self):\r\n return {'context': 'variables'}\r\n\r\n @cherrypy.expose\r\n @template('/page.html')\r\n def page(self):\r\n return {'context': 'variables'}\r\n\r\n\r\n config = {\r\n '/': {\r\n 'templating.renderer': renderer,\r\n 'templating.mako.template_directories': 'mako_templates', # optional\r\n 'templating.mako.config': {'module_directory': '/tmp/modules'} # also optional\r\n }\r\n }\r\n\r\n if __name__ == '__main__':\r\n cherrypy.quickstart(Root(), '/', config)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/livioribeiro/cherrypy-templating-mako", "keywords": "templating,cherrypy,mako", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "lribeiro.cherrypy.templating.mako", "package_url": "https://pypi.org/project/lribeiro.cherrypy.templating.mako/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lribeiro.cherrypy.templating.mako/", "project_urls": { "Homepage": "http://bitbucket.org/livioribeiro/cherrypy-templating-mako" }, "release_url": "https://pypi.org/project/lribeiro.cherrypy.templating.mako/1.0/", "requires_dist": null, "requires_python": null, "summary": "Mako renderer for lribeiro.cherrypy.templating", "version": "1.0" }, "last_serial": 1760254, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "da0009ed969204cfe97d952d7170eb82", "sha256": "50b4e2f560279978c41dd26e37c7f799b82787d8c3bd72902e3d43d2fa4df865" }, "downloads": -1, "filename": "lribeiro.cherrypy.templating.mako-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da0009ed969204cfe97d952d7170eb82", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5894, "upload_time": "2014-09-10T13:56:28", "url": "https://files.pythonhosted.org/packages/7c/64/1aeb09e8a7be586f74434a561d200465753bdb44ecdd773a2224514aa3d6/lribeiro.cherrypy.templating.mako-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8f323026b6c2ab185f8f00ece1aef22", "sha256": "f8b2a04104e69d1cf03ace4e7c21c762437e8cda398b2e9909e99c0c0f5836f5" }, "downloads": -1, "filename": "lribeiro.cherrypy.templating.mako-1.0.tar.gz", "has_sig": false, "md5_digest": "b8f323026b6c2ab185f8f00ece1aef22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3121, "upload_time": "2014-09-10T13:56:30", "url": "https://files.pythonhosted.org/packages/48/84/8967e9d0d5e0191f9523649e78b8a3534b3f4271bba67303d1fcb41a1b62/lribeiro.cherrypy.templating.mako-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da0009ed969204cfe97d952d7170eb82", "sha256": "50b4e2f560279978c41dd26e37c7f799b82787d8c3bd72902e3d43d2fa4df865" }, "downloads": -1, "filename": "lribeiro.cherrypy.templating.mako-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "da0009ed969204cfe97d952d7170eb82", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5894, "upload_time": "2014-09-10T13:56:28", "url": "https://files.pythonhosted.org/packages/7c/64/1aeb09e8a7be586f74434a561d200465753bdb44ecdd773a2224514aa3d6/lribeiro.cherrypy.templating.mako-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8f323026b6c2ab185f8f00ece1aef22", "sha256": "f8b2a04104e69d1cf03ace4e7c21c762437e8cda398b2e9909e99c0c0f5836f5" }, "downloads": -1, "filename": "lribeiro.cherrypy.templating.mako-1.0.tar.gz", "has_sig": false, "md5_digest": "b8f323026b6c2ab185f8f00ece1aef22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3121, "upload_time": "2014-09-10T13:56:30", "url": "https://files.pythonhosted.org/packages/48/84/8967e9d0d5e0191f9523649e78b8a3534b3f4271bba67303d1fcb41a1b62/lribeiro.cherrypy.templating.mako-1.0.tar.gz" } ] }