{ "info": { "author": "aleosd", "author_email": "osdalex@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Utilities" ], "description": "Django Text Chunks\n==================\n\nInsert blocks of text anywhere in in your template\n\nInstallation\n=============\n\nInstall package using pip\n\n::\n\n $ pip install django-textchunks\n\nBasic usage\n===========\n\nAdd the ``textchunks`` application to ``INSTALLED_APPS`` in your settings file (usually ``settings.py``)\n\n::\n\n INSTALLED_APPS = (\n ...\n 'textchunks',\n ...\n )\n\n\nSync database with ``./manage.py migrate``. After that, add textchunks using\ndjango admin interface and use them on your templates:\n\n.. code-block:: html\n\n {% load textchunks %}\n\n \n \n Test\n {% textchunk \"google_analytics\" %}\n \n \n

Blah blah blah

\n
\n ...\n
\n
\n {% textchunk \"home_page_left\" %}\n
\n
\n {% textchunk \"home_page_right\" %}\n
\n \n \n\nAdvanced usage\n==============\n\nThere are two template tags available: ``textchunk`` and ``textchunk_plain``.\nText displayed with ``textchunk`` is not escaped, any html and javascript is\nrendered or executed. ``textchunk_plain`` tag uses ``from django.utils.html.escape``\nto escape it's content, so it's safe to render user-entered text.\n\n``textchunk`` tag uses django ``Template`` object to render data and has access\nto template context. So, text\n\n::\n\n {{ request.user.username }}\n\nfor user with username as `agentsmith` will be rendered as\n\n::\n\n agentsmith\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aleosd/django-textchukns", "keywords": "django text chunks templates", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-textchunks", "package_url": "https://pypi.org/project/django-textchunks/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-textchunks/", "project_urls": { "Homepage": "https://github.com/aleosd/django-textchukns" }, "release_url": "https://pypi.org/project/django-textchunks/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Keyed blocks of text or html content for use in your Django templates", "version": "0.1.1" }, "last_serial": 2538550, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0e721dc4677468fa313c649090b2960a", "sha256": "1c4f3d93fa052ba99db0079df1f1fb9d9a85f54b012676d66439b25a592da089" }, "downloads": -1, "filename": "django_textchunks-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0e721dc4677468fa313c649090b2960a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6721, "upload_time": "2016-12-24T17:36:22", "url": "https://files.pythonhosted.org/packages/e5/d1/14b1423a8167042b4a0223aed29f86cf012bd60f522558ef5b70683bf120/django_textchunks-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e6e7715313cff2835d635329d792fc9d", "sha256": "42c79d47e779484f363165ffb5eb164fa13c9874ad57de6578a2c551574792d0" }, "downloads": -1, "filename": "django-textchunks-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e6e7715313cff2835d635329d792fc9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4621, "upload_time": "2016-12-24T17:36:24", "url": "https://files.pythonhosted.org/packages/d6/ba/1417df51fdeebdcb460d8edb99fbcc2d506afff0800d2e85fcb21c0a43f8/django-textchunks-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6407b6b003ab66afb39acdf823bd3ab0", "sha256": "4687b1e2a92aaa221c3dab4de2c6fdca81454899c4d5f2de57606cbc6b0e98e6" }, "downloads": -1, "filename": "django_textchunks-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6407b6b003ab66afb39acdf823bd3ab0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6715, "upload_time": "2016-12-25T05:21:36", "url": "https://files.pythonhosted.org/packages/e6/bc/99b153efc4ce709086ecb2662612f53cffefa7dcfe0bf676958b15722b4c/django_textchunks-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d99a6031daba7d9bc5d33d99f7ee8b46", "sha256": "3dc7ead7939a13656964a6f8baf3a39b34f227910091edbfcd8380d57cffd5c0" }, "downloads": -1, "filename": "django-textchunks-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d99a6031daba7d9bc5d33d99f7ee8b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4617, "upload_time": "2016-12-25T05:21:37", "url": "https://files.pythonhosted.org/packages/6d/08/40bdeeb7b6fe3f78f7a88ccc8d1dce1275a92d2f87ba5144de3f6a5ef03e/django-textchunks-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6407b6b003ab66afb39acdf823bd3ab0", "sha256": "4687b1e2a92aaa221c3dab4de2c6fdca81454899c4d5f2de57606cbc6b0e98e6" }, "downloads": -1, "filename": "django_textchunks-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6407b6b003ab66afb39acdf823bd3ab0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6715, "upload_time": "2016-12-25T05:21:36", "url": "https://files.pythonhosted.org/packages/e6/bc/99b153efc4ce709086ecb2662612f53cffefa7dcfe0bf676958b15722b4c/django_textchunks-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d99a6031daba7d9bc5d33d99f7ee8b46", "sha256": "3dc7ead7939a13656964a6f8baf3a39b34f227910091edbfcd8380d57cffd5c0" }, "downloads": -1, "filename": "django-textchunks-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d99a6031daba7d9bc5d33d99f7ee8b46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4617, "upload_time": "2016-12-25T05:21:37", "url": "https://files.pythonhosted.org/packages/6d/08/40bdeeb7b6fe3f78f7a88ccc8d1dce1275a92d2f87ba5144de3f6a5ef03e/django-textchunks-0.1.1.tar.gz" } ] }