{ "info": { "author": "Mjumbe Wawatu Ukweli", "author_email": "mjumbewu@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "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.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "djangobars\n==========\n\nAn extension to allow Django to use Handlebars templates through the pybars port\nof Handlebars.js\n\nBecause don't we all want to use the same templates on the client that we do on\nthe server?\n\n.. image:: https://travis-ci.org/mjumbewu/djangobars.png?branch=master\n :target: https://travis-ci.org/mjumbewu/djangobars\n\n**NOTE: This project is very early-stage. Try it out, leave feedback and wishes\nin the issues. And pull-requests welcome!**\n\nInstallation\n------------\n\n1. Install ``djangobars``::\n\n pip install djangobars\n\n2. Add ``'djangobars'`` to your installed applications.\n\n3. Add a ``HANDLEBARS_LOADERS`` value to your settings module. You will probably\n want::\n\n HANDLEBARS_LOADERS = (\n 'djangobars.template.loaders.filesystem.Loader',\n 'djangobars.template.loaders.app_directories.Loader',\n )\n\n4. *(optional)* Add a ``HANDLEBARS_DIRS`` and/or ``HANDLEBARS_APP_DIRNAMES``\n value to your setting module. By\n default, djangobars will search in your ``TEMPLATE_DIRS`` folder, but you can\n use the ``HANDLEBARS_DIRS`` value to override this behavior. For example, if\n you want to use both Django templates and Handlebars templates, you may want\n to keep the two in separate directories.\n\n\nUsage\n-----\n\nUse pretty much just as you would Django's own built-in templates. Instead of::\n\n from django.shortcuts import render\n\n def my_view(request):\n # View code here...\n return render(request, 'myapp/index.html', {\"foo\": \"bar\"},\n content_type=\"application/xhtml+xml\")\n\ndo this::\n\n from djangobars.shortcuts import render\n\n def my_view(request):\n # View code here...\n return render(request, 'myapp/handlebar_index.html', {\"foo\": \"bar\"},\n content_type=\"application/xhtml+xml\")\n\nAnd instead of::\n\n from django.views.generic import TemplateView\n\n class MyView (TemplateView):\n template_name = 'myapp/index.html'\n\ndo this::\n\n from django.views.generic import TemplateView\n from djangobars.response import HandlebarsResponse\n\n class MyView (TemplateView):\n template_name = 'myapp/handlebar_index.html'\n response_class = HandlebarsResponse\n\nTemplate Tags\n-------------\n\nYou can also include Handlebars templates with a Django template tag::\n\n {% load djangobars %}\n\n {% include_handlebars \"handlebars_template_name.html\" %}\n\nThe current template context will be carried over into the Handlebars template.\n\n\n0.2.0\n=====\n\n* Update the installation instructions.\n\n\n\n0.2.0\n=====\n\n* New dependencies on pymeta3 and pybars3.\n* Include partials of other templates in the project.\n\n\n\n0.1.5\n=====\n\n* Allow arbitrary objects as context for templates.\n\n\n\n0.1.4\n=====\n\n* Fix a bug in the app directories template loader where the path names were\n calling ``decode`` in Python 2 *and* 3.\n\n\n\n0.1.3\n=====\n\n* Change the installation details\n\n Pip 1.5 makes it difficult to specify installation sources outside of the\n PyPI. Also, this is better motivation to get these packages officially on\n PyPI.\n\n\n\n0.1.2\n=====\n\n* Depend on specific forks of pymeta and pybars\n\n\n\n0.1.1\n=====\n\n* First Release", "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/djangobars/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "djangobars", "package_url": "https://pypi.org/project/djangobars/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djangobars/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mjumbewu/djangobars/" }, "release_url": "https://pypi.org/project/djangobars/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "An extension to allow Django to use Handlebars templates through the pybars port of Handlebars.js", "version": "0.2.1" }, "last_serial": 1454825, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "cb8af62b24aad037bd9cb4588a19f4b2", "sha256": "62c1c69d91574229a3218af93beead4c85fde6c59f826d1960b43c46faa916ed" }, "downloads": -1, "filename": "djangobars-0.1.0.tar.gz", "has_sig": false, "md5_digest": "cb8af62b24aad037bd9cb4588a19f4b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5948, "upload_time": "2014-01-30T08:37:44", "url": "https://files.pythonhosted.org/packages/8e/38/252f9695214dcaed98afd52a02f4f621a044fcfe1141ed70c354fd9a2a6a/djangobars-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7163bb75af993f8cd305ee3432df311a", "sha256": "5950aceecd7d1948fbe82076db93098c57d2cf40a29cfe4cbbadb2e549adc479" }, "downloads": -1, "filename": "djangobars-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7163bb75af993f8cd305ee3432df311a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6296, "upload_time": "2014-01-30T08:42:50", "url": "https://files.pythonhosted.org/packages/21/ce/67dbf7ba73596355e46e9460d6a2d2c0747779040c61725f2b35cc9c2aa1/djangobars-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "4966ac549fcb5134a50c13feb9a28ee9", "sha256": "4e80f501643632dc12feb818e2d187380e914705bb87877be1b70e49c25d6c3b" }, "downloads": -1, "filename": "djangobars-0.1.2.tar.gz", "has_sig": false, "md5_digest": "4966ac549fcb5134a50c13feb9a28ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6391, "upload_time": "2014-01-30T16:35:55", "url": "https://files.pythonhosted.org/packages/f7/b2/30dddee84daaecfa890cc276884e19a70e79cee0258c49139c2454d00c42/djangobars-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "d8ca57769bff22e51957ab8b404bf39e", "sha256": "b07b8ffd310bb0a443ca9b0018d94a8b9e81c940abc9fc5b73beeba2d8cd0a20" }, "downloads": -1, "filename": "djangobars-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d8ca57769bff22e51957ab8b404bf39e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6605, "upload_time": "2014-02-16T02:44:24", "url": "https://files.pythonhosted.org/packages/80/a1/6cece02a6b10a621307676a90755951af8ae0fe7aa935021de3b537a384c/djangobars-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "cb71bd7eb7e8dd986b3a810c37989cb3", "sha256": "68aa0f57d44f7e4aa11de6258d575a398b1a91b8a0c2cf14a304b911f24dbe52" }, "downloads": -1, "filename": "djangobars-0.1.4.tar.gz", "has_sig": false, "md5_digest": "cb71bd7eb7e8dd986b3a810c37989cb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6770, "upload_time": "2014-08-22T17:40:41", "url": "https://files.pythonhosted.org/packages/54/14/3db8c1b51f51c02c91a51d50f04594e30316808187ee45af81e26a45667d/djangobars-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "fbd37c51092b72f6bbf8ab2df6f8c7c6", "sha256": "10d053b8a629cfacaf04b209d9bb95425c41f08d9f0b8bfbbf21530554656d67" }, "downloads": -1, "filename": "djangobars-0.1.5.tar.gz", "has_sig": false, "md5_digest": "fbd37c51092b72f6bbf8ab2df6f8c7c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6962, "upload_time": "2015-01-06T12:51:11", "url": "https://files.pythonhosted.org/packages/7f/48/d91b389d39d50c81a0f93819701114f5e9de3df24ac8a932c767bb7e584d/djangobars-0.1.5.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "4be1293b747aef4d80ea66aee8a0f5fb", "sha256": "9015bef88549ff965e79ea508d929c57516cffdf20c25b158aae8501ed492108" }, "downloads": -1, "filename": "djangobars-0.2.0.tar.gz", "has_sig": false, "md5_digest": "4be1293b747aef4d80ea66aee8a0f5fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7785, "upload_time": "2015-03-09T22:05:40", "url": "https://files.pythonhosted.org/packages/0e/c0/08a21a2cf97eabc8448d7d5f50e177e9b4f0b7ebce308a2b20f883d2a149/djangobars-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7156dc16bf9b01e2be2f1af62b14b007", "sha256": "66034b5a0b4eb8af8daae9128d6faaa18f9b06353dc0c7c96778124edd0cc8c3" }, "downloads": -1, "filename": "djangobars-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7156dc16bf9b01e2be2f1af62b14b007", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7508, "upload_time": "2015-03-09T22:09:53", "url": "https://files.pythonhosted.org/packages/ed/28/1a79c549290f61be5349d826787c03ba9718470d6876017691e21752200f/djangobars-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7156dc16bf9b01e2be2f1af62b14b007", "sha256": "66034b5a0b4eb8af8daae9128d6faaa18f9b06353dc0c7c96778124edd0cc8c3" }, "downloads": -1, "filename": "djangobars-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7156dc16bf9b01e2be2f1af62b14b007", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7508, "upload_time": "2015-03-09T22:09:53", "url": "https://files.pythonhosted.org/packages/ed/28/1a79c549290f61be5349d826787c03ba9718470d6876017691e21752200f/djangobars-0.2.1.tar.gz" } ] }