{ "info": { "author": "Mathieu Leplatre", "author_email": "mathieu.leplatre@makina-corpus.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Topic :: Utilities" ], "description": "*django-templatetag-handlebars* allows you to embed `Handlebars.js `_ \ntemplates in your django templates.\n\nMost of the template tag code comes from `Miguel Araujo's verbatim snippet `_. \n\n=======\nINSTALL\n=======\n\n::\n\n pip install django-templatetag-handlebars\n\n=====\nUSAGE\n=====\n\n* Add ``templatetag_handlebars`` to your ``INSTALLED_APPS``\n\n* Add the HTML header :\n\n::\n\n {% load templatetag_handlebars %}\n\n \n {% handlebars_js %}\n ...\n \n\n* Call the template tag, and write your Handlebars template :\n\n::\n\n {% tplhandlebars \"tpl-infos\" %}\n {{total}} {% trans \"result(s).\" %}\n

{% trans \"Min\" %}: {{min}}

\n

{% trans \"Max\" %}: {{max}}

\n {% endtplhandlebars %}\n\n* The following block with end-up in your page :\n\n::\n\n \n\n\nUsing Ember.js\n==============\n\nIn ``settings.py`` ensure to set the following attribute to ``True``. This is due to `Ember.js `_ expecting a slightly different script id declaration\n\n::\n\n USE_EMBER_STYLE_ATTRS = True\n\n\nThe script block will be rendered like ```