{
"info": {
"author": "Matthias Kestenholz",
"author_email": "mk@feinheit.ch",
"bugtrack_url": null,
"classifiers": [
"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 :: 3",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Application Frameworks"
],
"description": "===============================================================================\ndjango-js-asset -- script tag with additional attributes for django.forms.Media\n===============================================================================\n\n.. image:: https://travis-ci.org/matthiask/django-js-asset.svg?branch=master\n :target: https://travis-ci.org/matthiask/django-js-asset\n\nUsage\n=====\n\nUse this to insert a script tag via ``forms.Media`` containing additional\nattributes (such as ``id`` and ``data-*`` for CSP-compatible data\ninjection.):\n\n.. code-block:: python\n\n from js_asset import JS\n\n forms.Media(js=[\n JS(\"asset.js\", {\n \"id\": \"asset-script\",\n \"data-answer\": \"42\",\n }),\n ])\n\nThe rendered media tag (via ``{{ media.js }}`` or ``{{ media }}`` will\nnow contain a script tag as follows, without line breaks:\n\n.. code-block:: html\n\n \n\nThe attributes are automatically escaped. The data attributes may now be\naccessed inside ``asset.js``:\n\n.. code-block:: javascript\n\n var answer = document.querySelector(\"#asset-script\").dataset.answer;\n\nAlso, because the implementation of ``static`` differs between supported\nDjango versions (older do not take the presence of\n``django.contrib.staticfiles`` in ``INSTALLED_APPS`` into account), a\n``js_asset.static`` function is provided which does the right thing\nautomatically.\n\nWhen adding external script assets, you should pass ``static=False`` to\nthe ``JS`` object to avoid passing the script URL through ``static()``.\nIn this case, you probably want to add ``defer`` or ``async``, and maybe\nalso ``integrity`` and ``crossorigin`` attributes. Please note that\nboolean attributes are not properly supported, so specify them as\nfollows::\n\n JS(\n \"https://cdn.example.com/script.js\",\n {\"defer\": \"defer\"},\n static=False,\n )\n\n\nCompatibility\n=============\n\nAt the time of writing this app is compatible with Django 1.7 and better\n(up to and including the Django master branch), but have a look at the\n`Travis CI build `_ for\ndefinitive answers.\n\n\n",
"description_content_type": "",
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/matthiask/django-js-asset/",
"keywords": "",
"license": "BSD License",
"maintainer": "",
"maintainer_email": "",
"name": "django-js-asset",
"package_url": "https://pypi.org/project/django-js-asset/",
"platform": "OS Independent",
"project_url": "https://pypi.org/project/django-js-asset/",
"project_urls": {
"Homepage": "https://github.com/matthiask/django-js-asset/"
},
"release_url": "https://pypi.org/project/django-js-asset/1.2.2/",
"requires_dist": null,
"requires_python": "",
"summary": "script tag with additional attributes for django.forms.Media",
"version": "1.2.2"
},
"last_serial": 4849007,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "900293b55929277d7c124d28e34c2b88",
"sha256": "a067819271e3df5bc4936e1c602dd1e3a8b3d3c634ee584963304ebeea2392f0"
},
"downloads": -1,
"filename": "django_js_asset-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "900293b55929277d7c124d28e34c2b88",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 22817,
"upload_time": "2017-04-19T09:08:09",
"url": "https://files.pythonhosted.org/packages/f2/d9/3f71b7ab43b8a12527738637c58722530685e25a7580194c84d29cf24556/django_js_asset-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ea43a287f7d806bddfefcd6b2daf22ba",
"sha256": "4ed5e15d1c95e837476013e8846e05ec9f08f1f8ed28c2fe476ca6f392e7b725"
},
"downloads": -1,
"filename": "django-js-asset-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "ea43a287f7d806bddfefcd6b2daf22ba",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3541,
"upload_time": "2017-04-19T09:08:11",
"url": "https://files.pythonhosted.org/packages/5b/02/1cded1da07c469ac282b20b975990235119eb1dcf1fa0dc3a039abcd6fd6/django-js-asset-0.1.0.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "bd98771e4aa321737f3594d7816c3a5c",
"sha256": "0dd2c5f64f2b24eb8a7270a6a59cb914a03f205335bd0eb6207bf61cf7410828"
},
"downloads": -1,
"filename": "django_js_asset-0.1.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bd98771e4aa321737f3594d7816c3a5c",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 23237,
"upload_time": "2017-04-19T09:37:30",
"url": "https://files.pythonhosted.org/packages/20/6f/462444435476d2015cf54dd6eaa08447a566b586ff6e7fca19c2d4639e86/django_js_asset-0.1.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "8b0f04559463ee8b6eacd7fc722781f7",
"sha256": "c6637e4f3fef12024564057a48bef484db6491c610273d76d25d8dbe6ecc4ac1"
},
"downloads": -1,
"filename": "django-js-asset-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "8b0f04559463ee8b6eacd7fc722781f7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3771,
"upload_time": "2017-04-19T09:37:32",
"url": "https://files.pythonhosted.org/packages/e7/70/91802c80a0c7de49d9b8abf1b21d0a8eabdaf61f1a647e5899a0f105290d/django-js-asset-0.1.1.tar.gz"
}
],
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "ca8f82204ff0e60cfe44fcf8b07ad24c",
"sha256": "bcd00d7dc67f86cad1dac4bf7b43fa4b75088c214d2c92002b8705c6a7362e7e"
},
"downloads": -1,
"filename": "django_js_asset-1.0.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ca8f82204ff0e60cfe44fcf8b07ad24c",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5117,
"upload_time": "2018-01-16T11:36:27",
"url": "https://files.pythonhosted.org/packages/31/17/93ae0759d3043711e1f3c8187d44d28d57cffb781aadc6e786710350e7d2/django_js_asset-1.0.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "53604761bc1efeab51f7124cffae86b8",
"sha256": "38fc1de7a93a2f667fe7ee34acc53d682bac5ce6c73ac6f0ecb4ff77d0f61f1b"
},
"downloads": -1,
"filename": "django-js-asset-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "53604761bc1efeab51f7124cffae86b8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4104,
"upload_time": "2018-01-16T11:36:28",
"url": "https://files.pythonhosted.org/packages/10/b3/4f767ec7d42c836c6deacd4f6118f5657f245dd8e9c21af84ec6bc929cb5/django-js-asset-1.0.0.tar.gz"
}
],
"1.1.0": [
{
"comment_text": "",
"digests": {
"md5": "fd119ac7b2d7e7e36572c02c419deb8b",
"sha256": "a395d8d19eb201ea8d2bd4f145b38f1717cd74c0f609f040141d8724c5a27f36"
},
"downloads": -1,
"filename": "django_js_asset-1.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "fd119ac7b2d7e7e36572c02c419deb8b",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5654,
"upload_time": "2018-04-19T10:15:51",
"url": "https://files.pythonhosted.org/packages/d5/96/f68c636ebedc59576c3702b2bd00cd01eb8557a4b13d50c8fbc0cf91cc47/django_js_asset-1.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "360cd06bce3a85620a0375a6aecf0f77",
"sha256": "30149158206f693a5d027fe590096fc84495486bd11cd77d395b4f2ec27fc1d0"
},
"downloads": -1,
"filename": "django-js-asset-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "360cd06bce3a85620a0375a6aecf0f77",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4456,
"upload_time": "2018-04-19T10:15:52",
"url": "https://files.pythonhosted.org/packages/55/31/bc09d2c62bdd27cebd2bf1071fe000283b2d995da7af59c9640c5cfb7c04/django-js-asset-1.1.0.tar.gz"
}
],
"1.2.0": [],
"1.2.1": [
{
"comment_text": "",
"digests": {
"md5": "7d62eb804283a5388a4efcf5a5343cd4",
"sha256": "613e177fc6946497ed5ab09de95e3152d66264dbdcccc680ae3830e75b347184"
},
"downloads": -1,
"filename": "django_js_asset-1.2.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "7d62eb804283a5388a4efcf5a5343cd4",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5756,
"upload_time": "2019-02-08T12:36:59",
"url": "https://files.pythonhosted.org/packages/92/39/9bd7945cff101cee2dcdb380d1c6f66447191c2aeb3bf0fb60a6ab96386f/django_js_asset-1.2.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "eda4027b8fc92099bc39a91076be00e1",
"sha256": "33684c322db4fdec7cbd854fa8af527a9d2a4ef302c11263c18a9e19b3c4bd24"
},
"downloads": -1,
"filename": "django-js-asset-1.2.1.tar.gz",
"has_sig": false,
"md5_digest": "eda4027b8fc92099bc39a91076be00e1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4416,
"upload_time": "2019-02-08T12:37:01",
"url": "https://files.pythonhosted.org/packages/cc/11/b56a29fa04d6f2a7611da06225949d437bdf8ad56d948be0f3affa899c38/django-js-asset-1.2.1.tar.gz"
}
],
"1.2.2": [
{
"comment_text": "",
"digests": {
"md5": "239f7067030622e9aed7a54ec9003a60",
"sha256": "8ec12017f26eec524cab436c64ae73033368a372970af4cf42d9354fcb166bdd"
},
"downloads": -1,
"filename": "django_js_asset-1.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "239f7067030622e9aed7a54ec9003a60",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5775,
"upload_time": "2019-02-21T07:47:58",
"url": "https://files.pythonhosted.org/packages/aa/2d/98089cf51c8e83bc70723021390b94a3638a4a0ce30a47e2e70476b2095d/django_js_asset-1.2.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "2d8a4fde985f29a81a203022918dd7d7",
"sha256": "c163ae80d2e0b22d8fb598047cd0dcef31f81830e127cfecae278ad574167260"
},
"downloads": -1,
"filename": "django-js-asset-1.2.2.tar.gz",
"has_sig": false,
"md5_digest": "2d8a4fde985f29a81a203022918dd7d7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4436,
"upload_time": "2019-02-21T07:47:59",
"url": "https://files.pythonhosted.org/packages/81/d9/bbb15cf960142220a7a5ca38f2cbddd3ef6ad19f9efc6024670d44b43968/django-js-asset-1.2.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "239f7067030622e9aed7a54ec9003a60",
"sha256": "8ec12017f26eec524cab436c64ae73033368a372970af4cf42d9354fcb166bdd"
},
"downloads": -1,
"filename": "django_js_asset-1.2.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "239f7067030622e9aed7a54ec9003a60",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 5775,
"upload_time": "2019-02-21T07:47:58",
"url": "https://files.pythonhosted.org/packages/aa/2d/98089cf51c8e83bc70723021390b94a3638a4a0ce30a47e2e70476b2095d/django_js_asset-1.2.2-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "2d8a4fde985f29a81a203022918dd7d7",
"sha256": "c163ae80d2e0b22d8fb598047cd0dcef31f81830e127cfecae278ad574167260"
},
"downloads": -1,
"filename": "django-js-asset-1.2.2.tar.gz",
"has_sig": false,
"md5_digest": "2d8a4fde985f29a81a203022918dd7d7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4436,
"upload_time": "2019-02-21T07:47:59",
"url": "https://files.pythonhosted.org/packages/81/d9/bbb15cf960142220a7a5ca38f2cbddd3ef6ad19f9efc6024670d44b43968/django-js-asset-1.2.2.tar.gz"
}
]
}