{ "info": { "author": "Mjumbe Wawatu Ukweli", "author_email": "mjumbewu@gmail.com", "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", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "=================\ndjango-jstemplate\n=================\n\n.. image:: https://travis-ci.org/mjumbewu/django-jstemplate.png\n :alt: Build Status\n :target: https://travis-ci.org/mjumbewu/django-jstemplate\n.. image:: https://coveralls.io/repos/mjumbewu/django-jstemplate/badge.png?branch=master\n :alt: Coverage Status\n :target: https://coveralls.io/r/mjumbewu/django-jstemplate\n.. image:: https://pypip.in/v/django-jstemplate/badge.png\n :target: https://crate.io/packages/django-jstemplate/\n.. image:: https://pypip.in/d/django-jstemplate/badge.png\n :target: https://crate.io/packages/django-jstemplate/\n\nA templatetag framework for easier integration of `mustache.js`_, `dust.js`_,\n`handlebars.js`_, or other JavaScript templates with Django templates. Also will\nwrap your templates in elements expected for libraries such as `ICanHaz.js`_.\nDjango-jstemplates is extensible, so if your favorite template library is not\nincluded, it's easy to add. Inspired by `django-icanhaz`_.\n\n.. _mustache.js: http://mustache.github.com/\n.. _dust.js: http://akdubya.github.com/dustjs/\n.. _handlebars.js: http://handlebarsjs.com/\n.. _ICanHaz.js: http://icanhazjs.com/\n.. _django-icanhaz: http://github.com/carljm/django-icanhaz\n\nQuick Usage\n-----------\n\n(Read the full docs on `Read the Docs`_)\n\n.. _Read the Docs: http://django-jstemplate.readthedocs.org/en/latest/\n\nAdd ``\"jstemplate\"`` to your ``INSTALLED_APPS`` setting.\n\nDownload the templating library of your choice (I like to go straight\nmustache.js)::\n\n wget https://raw.github.com/janl/mustache.js/master/mustache.js\n mv mustache.js app/static/libs/\n\n``app/jstemplates/main.mustache``::\n\n
\n

This is {{ name }}'s template

\n
\n\n``app/templates/main.html``::\n\n {% load jstemplate %}\n\n \n \n \n \n \n \n\n \n
\n\n {% mustachejs \"main\" %}\n\n \n \n \n\n\nRunning tests\n-------------\n\nTo run the tests (for development), install ``mock`` and ``six`` and run::\n\n jstemplate/tests/project/manage.py test\n\n\nRationale\n---------\n\nThe collision between Django templates' use of ``{{`` and ``}}`` as template\nvariable markers and `mustache.js`_' use of same has spawned a variety of\nsolutions. `One solution`_ simply replaces ``[[`` and ``]]`` with ``{{`` and\n``}}`` inside an ``mustachejs`` template tag; `another`_ makes a valiant attempt\nto reconstruct verbatim text within a chunk of a Django template after it has\nalready been mangled by the Django template tokenizer.\n\nI prefer to keep my JavaScript templates in separate files in a dedicated\ndirectory anyway, to avoid confusion between server-side and client-side\ntemplating. So this solution is essentially just an \"include\" tag that avoids\nparsing the included file as a Django template.\n\nEnjoy!\n\n.. _one solution: https://gist.github.com/975505\n.. _another: https://gist.github.com/629508\n\n\nCHANGES\n=======\n\n1.3.8\n-----\n\n- Bug fix: Update to work with Django 1.9\n\n1.3.7\n-----\n\n- Bug fix: Fail silently when using an invalid regex to match templates.\n\n1.3.6\n-----\n\n- Bug fix: Fix the case on ``innerHTML`` (was ``innerHtml``)\n\n1.3.5\n-----\n\n- Use ``document.getElementById`` and ``innerHtml`` instead of depending on jQuery\n to get the text of handlebars templates.\n- Switch the order of precompiling and registering partials in handlebars tag,\n so that partials can used compiled template.\n\n1.3.4\n-----\n\n- Fix compatibility with Python 3.2. Explicity unicode literals (i.e., u'...')\n are not supported in Python 3.2 and cause a syntax error. Support was revived\n in Python 3.3. Python 2.6 and 2.7 allow using unicode string literals by\n default with `from __future__ import unicode_literals`, so we use that here.\n\n1.3.3\n-----\n\n- Sort translatable strings so that results are consistent across Python\n versions.\n\n1.3.2\n-----\n\n- All template renderers handle unicode characters.\n\n1.3.1\n-----\n\n- Bug fix: Closure that was registering Handlbars partials was not wrapped in\n parentheses.\n\n1.3.0\n-----\n\n- Add a short translation form::\n\n {{ _ 'this is translatable' }}\n\n1.2.1\n-----\n\n- Allow optional precompiling and and registering of partials for the\n Handlebars.js tag. For example::\n\n {% handlebarsjs '(.*)' precompile register_partials }\n\n This will add a `templates` object to `Handlebars`, and register all\n templates for use as partials.\n\n1.2.0\n-----\n\n- Add Handlebars.js support\n\n1.1.1\n-----\n\n- Fix setup script requirements\n\n1.1.0\n-----\n\n- Python 3 support!\n\n1.0.3\n-----\n\n- Move the static/mustache/js/ folder to static/libs/\n\n1.0.2\n-----\n\n- Update MANIFEST file to use \"jstemplate\" folder instead of \"mustachejs\"\n\n1.0.1\n-----\n\n- Simplify the template tag methods, and get rid of unused imports in the\n template tag modules\n- Update project references in the docs\n\n1.0.0\n-----\n\n- Rename project to \"django-jstemplate\" (from \"django-mustachejs\")\n- Rename the \"mustacheraw\" template tag to \"rawjstemplate\"\n- Rename the \"mustacheich\" template tag to \"icanhazjs\"\n\n0.8.3\n-----\n\n- Fix incorrect identifier name in makemessages command\n\n0.8.2\n-----\n\n- Fix the FilesystemRegexFinder to match exactly the extensions specified in\n the configuration, and no more\n\n0.8.1\n-----\n\n- Fix makemessages to work with recent code updates\n\n0.8.0\n-----\n\n- Have the regex finder respect the MUSTACHEJS_EXTS setting\n- Update normal file finders to use glob patterns\n\n0.7.4\n-----\n\n- Fix i18n preprocessor for python 2.6 compatibility\n\n0.7.3\n-----\n\n- Correctly escaped translated strings.\n\n0.7.2\n-----\n\n- Changed search pattern to be non-greedy.\n\n0.7.1\n-----\n\n- Handle translation strings with new lines.\n\n0.7.0\n-----\n\n- Pulled in commit from django-icanhaz to load templates using regular\n expressions.\n\n- Added preprocessing framework, and a preprocessor for i18n.\n\n- Hijack the makemessages command to find js template messages as well.\n\n0.6.0\n-----\n\n- Add ``dustjs`` tag to insert a script block to create a compiled dustjs\n template. Thanks to `Gehan Gonsalkorale `_.\n\n0.5.0\n-----\n\n- Add ``mustacheraw`` tag to insert just the raw text of a mustacehe template.\n Thanks to Greg Hinch.\n\n- Add ``mustacheich`` tag to insert a mustache script block as icanhaz expects.\n\n0.4.1 (2012.01.09)\n-----\n\n- Fixed template reading to explicitly decode template file contents using\n Django's ``FILE_CHARSET`` setting. Thanks Eduard Iskandarov.\n\n- Fixed template-finding failure with non-normalized directories in\n ``MUSTACHEJS_DIRS``. Thanks Eduard Iskandarov for report and patch.\n\n\n0.4.0\n-----\n\n- Add the MUSTACHEJS_EXTS configuration variable for specifying the extensions\n allowed for template files located by the FilesystemFinder (and, by extension,\n the AppFinder).\n\n\n0.3.3\n-----\n\n- Add a package_data value to the setup call\n\n\n0.3.2\n-----\n\n- Add the MANIFEST.in file itself as an entry in MANIFEST.in.\n\n\n0.3.0\n-----\n\n- Change the name from django-icanhaz to django-mustachejs.\n- Remove dependency on ICanHaz.js. I like the library, but the maintainers\n were not responsive enough for now. Use Mustache.js straight, with a little\n bit of minimal sugar. Templates are rendered to straight Javascript.\n\n\n0.2.0 (2011.06.26)\n-----\n\n- Made template-finding more flexible: ``ICANHAZ_DIR`` is now ``ICANHAZ_DIRS``\n (a list); added ``ICANHAZ_FINDERS``, ``ICANHAZ_APP_DIRNAMES``, and finding of\n templates in installed apps.\n\n\n0.1.0 (2011.06.22)\n-----\n\n- Initial release.\n\n\nTODO\n====", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mjumbewu/django-jstemplate/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-jstemplate", "package_url": "https://pypi.org/project/django-jstemplate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-jstemplate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mjumbewu/django-jstemplate/" }, "release_url": "https://pypi.org/project/django-jstemplate/1.3.8/", "requires_dist": null, "requires_python": null, "summary": "A Django template tag for embedding Mustache.js templates -- or other JavaScript templates -- safely.", "version": "1.3.8" }, "last_serial": 1931744, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c586a3c60551b8d81864415f929f3efb", "sha256": "c585d6bdf70088311d7a7fca84499e3ac9b23c30b7c8c4b17fb5e20aae5d7831" }, "downloads": -1, "filename": "django-jstemplate-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c586a3c60551b8d81864415f929f3efb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14149, "upload_time": "2012-09-06T04:28:14", "url": "https://files.pythonhosted.org/packages/1e/6f/86135bec69e3ca580bd84997b285ca889408df27d16f9b921747a4ffe704/django-jstemplate-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "592323a3e3a7af3e13b34fa72496c1c3", "sha256": "b26ffea666622e93461205253a818398e6d967e3f74ec1cc037ba4488b8f1688" }, "downloads": -1, "filename": "django-jstemplate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "592323a3e3a7af3e13b34fa72496c1c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14238, "upload_time": "2012-09-06T05:09:38", "url": "https://files.pythonhosted.org/packages/b1/29/69221f897440cdba19933455351747e6f763f178f219aa7ca49f2cc036cb/django-jstemplate-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "ac9806af64b387b37027e26611314b47", "sha256": "edfb9ddaccc9f874122b8b7753b3948247a780d8e7a4df4730f6195d46dbe9fd" }, "downloads": -1, "filename": "django-jstemplate-1.0.2.tar.gz", "has_sig": false, "md5_digest": "ac9806af64b387b37027e26611314b47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20859, "upload_time": "2012-10-17T15:05:08", "url": "https://files.pythonhosted.org/packages/ab/79/9d484aa8b7bb6288cf9908b4d5f0d2fd57b7fcd3455f8b71e4a24806ae43/django-jstemplate-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "29ff055bd9368f9b9cb67ad1b4beb807", "sha256": "832e9523f102d81164ad113539797a4c33f16bc5771b06f133841db0f552bc65" }, "downloads": -1, "filename": "django-jstemplate-1.0.3.tar.gz", "has_sig": false, "md5_digest": "29ff055bd9368f9b9cb67ad1b4beb807", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20877, "upload_time": "2012-10-17T16:52:15", "url": "https://files.pythonhosted.org/packages/10/7b/59ea03d0b7ed62508a13207d6b232ca59051109dbc7bc957489f1107460b/django-jstemplate-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "501dcc6a66028486e7d830285ad8e054", "sha256": "31ad88d47482e1c8ce5e3d9322b2ad7cf3c6d88fe0fef5112872e0367c7415c4" }, "downloads": -1, "filename": "django-jstemplate-1.1.0.tar.gz", "has_sig": false, "md5_digest": "501dcc6a66028486e7d830285ad8e054", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21215, "upload_time": "2012-12-16T20:00:07", "url": "https://files.pythonhosted.org/packages/10/4f/950393b26404cf8e90c85b2f9ce60285d775ba6c28a2e3e7a9a8a2467331/django-jstemplate-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "069e5d79e025b25ef7c8e4e5298511db", "sha256": "de58d53fa6650b887908c31dfb27fe9830bf8977b7106f935723ae02b91e4a5b" }, "downloads": -1, "filename": "django-jstemplate-1.1.1.tar.gz", "has_sig": false, "md5_digest": "069e5d79e025b25ef7c8e4e5298511db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17511, "upload_time": "2012-12-17T19:25:54", "url": "https://files.pythonhosted.org/packages/64/e6/8dbfca112a7e12cb4793bc8b262dcb453b46915928e378a03ade1b9f4a9e/django-jstemplate-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "ccd5f69b01fe88c106da7f8a007e8111", "sha256": "b03937bc64fd6cda35ccdf8c638a1c19c6fa7aa64de6171a302dff060e5ea916" }, "downloads": -1, "filename": "django-jstemplate-1.2.0.tar.gz", "has_sig": false, "md5_digest": "ccd5f69b01fe88c106da7f8a007e8111", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17977, "upload_time": "2013-04-03T19:02:11", "url": "https://files.pythonhosted.org/packages/66/29/d5de8bcb43e99ab655b90984192f0ef9910e64be99ffcbe1904aeaab2d53/django-jstemplate-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "9d6289ea7d4d0587bb29cdb165c29390", "sha256": "c9bd510a56bb15fba1ec704ef2427713d5ecda46cad4d8792f274f160b39b1d2" }, "downloads": -1, "filename": "django-jstemplate-1.2.1.tar.gz", "has_sig": false, "md5_digest": "9d6289ea7d4d0587bb29cdb165c29390", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18686, "upload_time": "2013-07-05T17:35:50", "url": "https://files.pythonhosted.org/packages/d8/e0/3a39a3c8ec14dd3a84ef49aaab6ce65ab0b25c509ddebd2329115e595ec8/django-jstemplate-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "49b7c616cf0ddf333563264eea9e71ad", "sha256": "8ceeba3b3bc628fb08cd0a2b83cf1588ca53783c4d9925041c60b51713f98f98" }, "downloads": -1, "filename": "django-jstemplate-1.3.0.tar.gz", "has_sig": false, "md5_digest": "49b7c616cf0ddf333563264eea9e71ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19197, "upload_time": "2013-07-05T19:07:48", "url": "https://files.pythonhosted.org/packages/77/b2/94b9f478102c2e1cfbc0b9e0ed0061af9ddaa12d8605703e4321c6b44507/django-jstemplate-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "fab0e5ec08399634fe6f46f0b1e44f9a", "sha256": "2072eeeaa5e4981aed6ebc49d4e04ca823f2efbee7d9cd5c0617d6576e2410ed" }, "downloads": -1, "filename": "django-jstemplate-1.3.1.tar.gz", "has_sig": false, "md5_digest": "fab0e5ec08399634fe6f46f0b1e44f9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19318, "upload_time": "2013-07-11T13:40:54", "url": "https://files.pythonhosted.org/packages/a9/48/2ee6fc163b6a8bc3a51660133db7227320df1baf230c7b9f60490002c79b/django-jstemplate-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "4d264ba7825ad08626164b20090037d2", "sha256": "47943f5fbb718fd636588f5fa29c55e64483262f27a718f311f1cf3cdf8fb197" }, "downloads": -1, "filename": "django-jstemplate-1.3.2.tar.gz", "has_sig": false, "md5_digest": "4d264ba7825ad08626164b20090037d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19565, "upload_time": "2013-07-17T17:33:32", "url": "https://files.pythonhosted.org/packages/80/e6/5085161d4ba3f8125be37cb3ef3ceb168c79362d86e3c299154eed02e6fd/django-jstemplate-1.3.2.tar.gz" } ], "1.3.4": [ { "comment_text": "", "digests": { "md5": "3f01d5d479697947eacb76a1fad92a55", "sha256": "53ed12c96f036bac6f6ae8f40ea341be0fac583ad2d0a124318fd608b852e1fb" }, "downloads": -1, "filename": "django-jstemplate-1.3.4.tar.gz", "has_sig": false, "md5_digest": "3f01d5d479697947eacb76a1fad92a55", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19935, "upload_time": "2013-09-02T17:23:49", "url": "https://files.pythonhosted.org/packages/f6/f1/f4f62f0bce198d75b838113208c5d3edcd8dd51e85d44d6ee0c263c91619/django-jstemplate-1.3.4.tar.gz" } ], "1.3.5": [ { "comment_text": "", "digests": { "md5": "72fea2bf34f854eee37a06674df59f5c", "sha256": "e5f61e075d210f60c59e37f617dae58c704f16a102e60b3544a9593516ee562b" }, "downloads": -1, "filename": "django-jstemplate-1.3.5.tar.gz", "has_sig": false, "md5_digest": "72fea2bf34f854eee37a06674df59f5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20352, "upload_time": "2013-09-23T22:05:23", "url": "https://files.pythonhosted.org/packages/5a/21/d1220058469dff1b156f387e4861197018f47403c090de6322d7d8d09ee1/django-jstemplate-1.3.5.tar.gz" } ], "1.3.6": [ { "comment_text": "", "digests": { "md5": "9d7ab56ce7811b4684659348055f8f38", "sha256": "2dbe67eaa2cf5b2dbf85fb3b3caef17f808617398d5ae40495a2da384944d244" }, "downloads": -1, "filename": "django-jstemplate-1.3.6.tar.gz", "has_sig": false, "md5_digest": "9d7ab56ce7811b4684659348055f8f38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20390, "upload_time": "2013-09-24T11:09:28", "url": "https://files.pythonhosted.org/packages/f3/ef/1831a6ee2f678e37a28d78a99c2aad35a7973a8dd3f8c45c91c663d5f1fe/django-jstemplate-1.3.6.tar.gz" } ], "1.3.7": [ { "comment_text": "", "digests": { "md5": "128f4f10d6cc24fab0229d3bbec47a53", "sha256": "19fe53a2083c6a63f6fa818f9224fb9713fcd4d4530dfd2b7b3df63b27c648b3" }, "downloads": -1, "filename": "django-jstemplate-1.3.7.tar.gz", "has_sig": false, "md5_digest": "128f4f10d6cc24fab0229d3bbec47a53", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20908, "upload_time": "2014-03-23T06:24:58", "url": "https://files.pythonhosted.org/packages/67/e0/3998ad50d07d44ab6bfa4eec4e674b29b591bfb5b4409c78457804cbdff1/django-jstemplate-1.3.7.tar.gz" } ], "1.3.8": [ { "comment_text": "", "digests": { "md5": "ce41aa7aa79ed7e6d3b0d251d945eb7c", "sha256": "d45028051fad48cf3f2534d563460436779ffd6edda700194e80cd252cf50b49" }, "downloads": -1, "filename": "django-jstemplate-1.3.8.tar.gz", "has_sig": false, "md5_digest": "ce41aa7aa79ed7e6d3b0d251d945eb7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20985, "upload_time": "2016-01-31T06:03:11", "url": "https://files.pythonhosted.org/packages/d2/54/c37b7bcf93b4cf7e06c562ae47aa039172865a31aca292d6191fd4c4167d/django-jstemplate-1.3.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce41aa7aa79ed7e6d3b0d251d945eb7c", "sha256": "d45028051fad48cf3f2534d563460436779ffd6edda700194e80cd252cf50b49" }, "downloads": -1, "filename": "django-jstemplate-1.3.8.tar.gz", "has_sig": false, "md5_digest": "ce41aa7aa79ed7e6d3b0d251d945eb7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20985, "upload_time": "2016-01-31T06:03:11", "url": "https://files.pythonhosted.org/packages/d2/54/c37b7bcf93b4cf7e06c562ae47aa039172865a31aca292d6191fd4c4167d/django-jstemplate-1.3.8.tar.gz" } ] }