{ "info": { "author": "Jacob Smullyan", "author_email": "smulloni@smullyan.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": ".. -*- rst -*-\n\nMako templates for django >= 1.2.\n\nPortions of this code are taken from django-smorgasbord's mako\nsupport. Smorgasbord provided a monkeypatch to facilitate the use of\nother templating languages within django 1.1; with django 1.2, this\nmonkeypatch is no longer necessary, and there is no longer any\nparticular reason to conjoin template loaders for different languages\nin one project.\n\nTo use, add ``'djmako.MakoLoader'`` to ``settings.TEMPLATE_LOADERS``, and\ndefine settings.MAKO_TEMPLATE_DIRS (a tuple of directories in which to\nlook for mako templates -- required) and ``settings.MAKO_TEMPLATE_OPTS``\n(a dictionary of other parameters to pass to Mako's ``TemplateLookup``\nclass -- optional).\n\nFor instance, in ``settings.py`` you might have::\n\n TEMPLATE_LOADERS = (\n 'djmako.MakoLoader',\n 'django.template.loaders.filesystem.Loader',\n 'django.template.loaders.app_directories.Loader',\n )\n\n MAKO_TEMPLATE_DIRS=(os.path.join(PROJECT_ROOT, 'templates', 'mako'),)\n\n MAKO_TEMPLATE_OPTS=dict(input_encoding='utf-8',\n cache_impl='djmakocache', \n module_directory=os.path.join(\n tempfile.gettempdir(),\n os.environ.get('LOGNAME', 'someuser'),\n 'mysite',\n PROJECT_ROOT.split('/')[-2]))\n\nNote that in the above configuration, the mako loader is checked\nfirst, and django templates afterwards.\n\nCache Plugin\n~~~~~~~~~~~~\n\nAs of version 0.4, djmako contains a cache plugin for Mako that\nconnects the Mako cache to the Django cache system. To enable, set\n``\"cache_impl\"`` to ``\"djmakocache\"`` in\n``settings.MAKO_TEMPLATE_OPTS``.\n\nLicense\n=======\n\nCopyright (c) 2010 Jacob Smullyan.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the\n distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/smulloni/djmako", "keywords": "django mako templating", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "djmako", "package_url": "https://pypi.org/project/djmako/", "platform": "OS Independent", "project_url": "https://pypi.org/project/djmako/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/smulloni/djmako" }, "release_url": "https://pypi.org/project/djmako/0.4/", "requires_dist": null, "requires_python": null, "summary": "mako template support for Django >=1.2", "version": "0.4" }, "last_serial": 791206, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "38e7d05f881477d72cfd4e7e37439fb9", "sha256": "117e356cbdf978894f578cce3ba6678e55037a9fbdca331b05f5a4409abb691d" }, "downloads": -1, "filename": "djmako-0.1.tar.gz", "has_sig": false, "md5_digest": "38e7d05f881477d72cfd4e7e37439fb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3367, "upload_time": "2010-06-01T17:37:57", "url": "https://files.pythonhosted.org/packages/5d/03/be494753961001cf1ce10094f054522051e0f8759871e4294532b5affcf0/djmako-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "0e20e06830518d3cfb625d1c0a5e789a", "sha256": "02dbf8da7099f1fe769216251bb3c84291f4c9c6bce79165d099ed7f3da163a5" }, "downloads": -1, "filename": "djmako-0.2.tar.gz", "has_sig": false, "md5_digest": "0e20e06830518d3cfb625d1c0a5e789a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3386, "upload_time": "2010-06-02T05:01:03", "url": "https://files.pythonhosted.org/packages/9e/8c/6d96d90d51c0080787b9b5007129c4a671bf0540765a72d3919536e0127f/djmako-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "ed0cba4351edac69e3927dd4b3967de5", "sha256": "23b198b939ad258ad2f9d34837de88fe55b13f870a4b6723af204d7875fd0172" }, "downloads": -1, "filename": "djmako-0.3.tar.gz", "has_sig": false, "md5_digest": "ed0cba4351edac69e3927dd4b3967de5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3395, "upload_time": "2010-06-07T05:35:46", "url": "https://files.pythonhosted.org/packages/76/f5/c26e917f6f7ee71683caaa39d07dfc0b47be05fff4b785f3ba353ef82e9e/djmako-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2967f07c563fdec46ab1715efb2578e9", "sha256": "4262f32fa5bba11c37b80a7ac33c774784d3677557f62d615a359b7440b97838" }, "downloads": -1, "filename": "djmako-0.4.tar.gz", "has_sig": false, "md5_digest": "2967f07c563fdec46ab1715efb2578e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3936, "upload_time": "2012-04-04T03:20:29", "url": "https://files.pythonhosted.org/packages/06/e9/6cf67c8f03454c8dcbe339140ea40868eb734c98c847fa7996b5186dc36e/djmako-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2967f07c563fdec46ab1715efb2578e9", "sha256": "4262f32fa5bba11c37b80a7ac33c774784d3677557f62d615a359b7440b97838" }, "downloads": -1, "filename": "djmako-0.4.tar.gz", "has_sig": false, "md5_digest": "2967f07c563fdec46ab1715efb2578e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3936, "upload_time": "2012-04-04T03:20:29", "url": "https://files.pythonhosted.org/packages/06/e9/6cf67c8f03454c8dcbe339140ea40868eb734c98c847fa7996b5186dc36e/djmako-0.4.tar.gz" } ] }