{ "info": { "author": "ENDOH takanao", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Utilities" ], "description": "Jinja2 pre-compiler |Build Status|_\n===================================\n\nPre-compile Jinja2 templates to Python byte code.\n\n.. |Build Status| image:: https://travis-ci.org/MiCHiLU/jinja2-precompiler.png?branch=master\n.. _`Build Status`: http://travis-ci.org/MiCHiLU/jinja2-precompiler\n\n\nUsage\n-----\nJinja2 pre-compiler comes with a utility script called ``jinja2precompiler``.\nPlease type ``jinja2precompiler --help`` at the shell prompt to\nknow more about this tool.\n\nCompiling the Jinja2 template\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThen run ``jinja2precompiler`` command::\n\n $ jinja2precompiler templates\n Compiling into folder \"templates\"\n ...\n Compiled \"templates/template.html\" as tmpl_5f0fcb0ed56efa600c50d9f2870192327823c063.py\n ...\n Finished compiling templates\n\nWill compiling to Python byte code with ``--pyc`` option::\n\n $ jinja2precompiler --pyc templates\n Compiling into folder \"templates\"\n ...\n Compiled \"templates/template.html\" as tmpl_5f0fcb0ed56efa600c50d9f2870192327823c063.pyc\n ...\n Finished compiling templates\n\nGet the compiled module name\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nWill return a module file name with ``--modulename`` option::\n\n $ jinja2precompiler --modulename templates/template.html\n tmpl_41d3b4a4b71afe0c223778e57c23244caee1baec.py\n\n $ jinja2precompiler --modulename --pyc templates/template.html\n tmpl_41d3b4a4b71afe0c223778e57c23244caee1baec.pyc\n\nAnd you can prepend directory path with ``--base`` option::\n\n $ jinja2precompiler --modulename --base=templates templates/template.html\n templates/tmpl_5f0fcb0ed56efa600c50d9f2870192327823c063.py\n\nWill return module file names you specify the argument more than one::\n\n $ jinja2precompiler --modulename a.html b.html c.html\n tmpl_25e7e8960b03ecb19189f36b8ef611389397c95c.py tmpl_83d0d31e29a7746a19536d616218a384f62d4694.py tmpl_45ecd51cee2d33904a8cd1af7c441dd3fc320870.py\n\nWith Make\n~~~~~~~~~\n\nAn example ``Makefile`` file::\n\n templates_compiled.zip: $(wildcard templates/*.html)\n \tjinja2precompiler -c templates\n \tzip -FS -j templates_compiled.zip templates/*.pyc\n\nWill compiling only updated files and storing into the zip file.\n\n\nInstallation\n------------\nInstalling from PyPI using ``pip``::\n\n pip install jinja2precompiler\n\nInstalling from PyPI using ``easy_install``::\n\n easy_install jinja2precompiler\n\nInstalling from source::\n\n python setup.py install\n\n\nDependencies\n------------\n1. Jinja2_\n\n\nChanges\n-------\n\n0.2: supports walking symlink directories\n\n\nLicensing\n---------\nJinja2 pre-compiler is licensed under the terms of the `BSD 3-Clause`_.\n\nCopyright 2012 ENDOH takanao.\n\nProject `source code`_ is available at Github. Please report bugs and file\nenhancement requests at the `issue tracker`_.\n\n\n.. links:\n.. _Jinja2: http://jinja.pocoo.org/\n.. _BSD 3-Clause: http://opensource.org/licenses/BSD-3-Clause\n.. _issue tracker: http://github.com/MiCHiLU/jinja2-precompiler/issues\n.. _source code: http://github.com/MiCHiLU/jinja2-precompiler", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/MiCHiLU/jinja2-precompiler", "keywords": "jinja2 python template", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "jinja2-precompiler", "package_url": "https://pypi.org/project/jinja2-precompiler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jinja2-precompiler/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/MiCHiLU/jinja2-precompiler" }, "release_url": "https://pypi.org/project/jinja2-precompiler/0.2/", "requires_dist": null, "requires_python": null, "summary": "Pre-compile Jinja2 templates to Python byte code", "version": "0.2" }, "last_serial": 961603, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e6dc082c47ab7b92ca4feff489ce66e3", "sha256": "aef005d2e35490f289466be9543e858e74a64195fc689f2aef9678fde0848748" }, "downloads": -1, "filename": "jinja2-precompiler-0.1.tar.gz", "has_sig": false, "md5_digest": "e6dc082c47ab7b92ca4feff489ce66e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 154046, "upload_time": "2013-04-08T00:47:12", "url": "https://files.pythonhosted.org/packages/75/cc/297a542b70f16308edb16e68b0afa5b2e6d80cf3a95e4d15234d1ae0abd1/jinja2-precompiler-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "88e72825cfba21b8b2fa8d7a300b80b2", "sha256": "e9ffe1b4414b4f86273f1f14da0d9a2155837044c434f7ca17642f7fd98da449" }, "downloads": -1, "filename": "jinja2-precompiler-0.2.tar.gz", "has_sig": false, "md5_digest": "88e72825cfba21b8b2fa8d7a300b80b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 154661, "upload_time": "2014-01-06T11:07:37", "url": "https://files.pythonhosted.org/packages/2e/f2/48b9ca6af2f95a9de60a2eae05abc2d93d66516627fce58ad529a031c9a3/jinja2-precompiler-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88e72825cfba21b8b2fa8d7a300b80b2", "sha256": "e9ffe1b4414b4f86273f1f14da0d9a2155837044c434f7ca17642f7fd98da449" }, "downloads": -1, "filename": "jinja2-precompiler-0.2.tar.gz", "has_sig": false, "md5_digest": "88e72825cfba21b8b2fa8d7a300b80b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 154661, "upload_time": "2014-01-06T11:07:37", "url": "https://files.pythonhosted.org/packages/2e/f2/48b9ca6af2f95a9de60a2eae05abc2d93d66516627fce58ad529a031c9a3/jinja2-precompiler-0.2.tar.gz" } ] }