{ "info": { "author": "Philip J Grabner, Canary Health Inc", "author_email": "oss@canary.md", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "License :: Public Domain", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development" ], "description": "============================\nJavaScript Template Compiler\n============================\n\nThe `jstc` Python package compiles and packages JavaScript templates\nfor delivery to browsers for client-side evaluation.\n\nCurrently, only `Handlebars`_ and `Mustache`_ template formats are\nsupported natively, however this is easily extended via jstc's plugin\nmechanism.\n\n\nProject\n=======\n\n* Homepage: https://github.com/canaryhealth/jstc\n* Bugs: https://github.com/canaryhealth/jstc/issues\n* Manual: https://github.com/canaryhealth/jstc/blob/master/doc/manual.rst\n\n\nInstallation\n============\n\n.. code:: bash\n\n $ pip install jstc\n\n\nOptionally, the handlebars pre-compiler can be installed to\npre-compile JavaScript templates for faster client-side rendering:\n\n.. code:: bash\n\n # OPTIONAL: install handlebars pre-compiler\n $ npm install handlebars\n $ export PATH=\"`pwd`/node_modules/.bin:$PATH\"\n\n\nUsage\n=====\n\nThe typical usage is to have something similar to the following in\nyour HTML generation template (here, using `Mako`_ syntax):\n\n.. code:: mako\n\n <%! import jstc %>\n \n \n
\n\n