{ "info": { "author": "Philip J Grabner, Canary Health Inc", "author_email": "oss@canary.md", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Web Environment", "Framework :: Pyramid", "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 :: Internet :: WWW/HTTP :: WSGI", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "===============================\nPyramid Just-In-Time Templating\n===============================\n\nThe `pyramid_jitt` package is a wrapper around the `jstc`_ JavaScript\ntemplate compiler that allows client-side templates to be defined in\ndisparate server-side files and be assembled, pre-compiled, packaged,\ncached, and access-controlled for inline, deferred, and restricted\ndelivery.\n\n.. IMPORTANT::\n\n As of 2016/10/09, \"restricted\" delivery (i.e. access-controlled\n delivery control of all or a subset of the templates) and\n per-template JIT rendering is not yet available.\n\n\nCurrently, `jQuery`_ (v1.9.1+) is required for non-inline template\ndelivery.\n\n\nProject\n=======\n\n* Homepage: https://github.com/canaryhealth/pyramid_jitt\n* Bugs: https://github.com/canaryhealth/pyramid_jitt/issues\n\n\nInstallation\n============\n\n.. code:: bash\n\n $ pip install pyramid_jitt\n\n\nUsage\n=====\n\nEnable the package either in your INI file via:\n\n.. code:: ini\n\n pyramid.includes =\n pyramid_beaker\n pyramid_jitt\n\n\n(it is highly recommended to use `pyramid_beaker`_ for caching of\nrendered templates) or in code in your package's application\ninitialization via:\n\n.. code:: python\n\n def main(global_config, **settings):\n # ...\n config.include('pyramid_beaker')\n config.include('pyramid_jitt')\n # ...\n\n\nConfigure pyramid_jitt's behaviour by setting the various options in\nyour INI file (see the `Manual`_ for details), for example:\n\n.. code:: ini\n\n # use pyramid_beaker for caching!\n cache.type = memory\n cache.regions = pyramid_jitt\n cache.pyramid_jitt.expire = 3600\n\n # override all template attributes to disable deferred loading\n jitt.overrides.inline = true\n\n # define where the \"webapp\" templates (Handlebars, in this case) are\n # located and disable pre-compilation (only for \"webapp\" templates)\n jitt.@webapp.assets = myapp:static/scripts/**.hbs\n jitt.@webapp.overrides.precompile = false\n\n\nThen, add the delivery payload to your HTML file, here a `Mako`_\nexample:\n\n.. code:: mako\n\n \n
\n\n ${request.registry.jitt.render('webapp')|n}\n\n \n\n \n \n\n\nMore Documentation\n==================\n\nMore documentation can be found in the `Manual`_.\n\n\n.. _jstc: https://pypi.python.org/pypi/jstc\n.. _pyramid_beaker: https://pypi.python.org/pypi/pyramid_beaker\n.. _Mako: http://www.makotemplates.org/\n.. _jQuery: http://jquery.com/\n\n.. TODO .. move the manual to pythonhosted.org...\n\n.. _Manual: https://github.com/canaryhealth/pyramid_jitt/blob/master/doc/manual.rst", "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/canaryhealth/pyramid_jitt", "keywords": "web wsgi pyramid tween javascript compiler packager", "license": "MIT (http://opensource.org/licenses/MIT)", "maintainer": null, "maintainer_email": null, "name": "pyramid_jitt", "package_url": "https://pypi.org/project/pyramid_jitt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_jitt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/canaryhealth/pyramid_jitt" }, "release_url": "https://pypi.org/project/pyramid_jitt/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "A Just-In-Time compilation and packaging of JavaScript templates for Pyramid.", "version": "0.1.2" }, "last_serial": 2389805, "releases": { "0.0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "dfc3efedc29ed0905bf7c3eb3c120917", "sha256": "5bf637e1cd9fbcabf2e20bfda5be8dd22468412c25c04b0b53b20aa5ca979ff5" }, "downloads": -1, "filename": "pyramid_jitt-0.1.1.tar.gz", "has_sig": false, "md5_digest": "dfc3efedc29ed0905bf7c3eb3c120917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8762, "upload_time": "2016-09-27T22:56:23", "url": "https://files.pythonhosted.org/packages/4f/61/4e641a96be8a87a9c4c6322cf039db083880acbf5eec684e2c7eb2ca7dee/pyramid_jitt-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "7c48e68f0677d75f06f92e6a31ec44ca", "sha256": "fff4478285074b8824b7ae523b8814c0fa7d2d0782f186a9bcbcce3039faa215" }, "downloads": -1, "filename": "pyramid_jitt-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7c48e68f0677d75f06f92e6a31ec44ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15449, "upload_time": "2016-10-09T21:04:11", "url": "https://files.pythonhosted.org/packages/76/4a/9bcd1cd9c4dc7be0fdaf6fb7847fcb5dc8521883b6263ec066c927bb97f0/pyramid_jitt-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7c48e68f0677d75f06f92e6a31ec44ca", "sha256": "fff4478285074b8824b7ae523b8814c0fa7d2d0782f186a9bcbcce3039faa215" }, "downloads": -1, "filename": "pyramid_jitt-0.1.2.tar.gz", "has_sig": false, "md5_digest": "7c48e68f0677d75f06f92e6a31ec44ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15449, "upload_time": "2016-10-09T21:04:11", "url": "https://files.pythonhosted.org/packages/76/4a/9bcd1cd9c4dc7be0fdaf6fb7847fcb5dc8521883b6263ec066c927bb97f0/pyramid_jitt-0.1.2.tar.gz" } ] }