Include JavaScript/CSS libraries with readable template tags
Project description
Description
Django-Any-JS helps you at including any combination of JavaScript/CSS URLs in your site, with readable settings and template tags.
Usage
In your settings:
INSTALLED_APPS = [ ..., "django_any_js", ..., ] ANY_JS = { "DataTables": { "js_url": "/javascript/jquery-datatables/dataTables.bootstrap4.min.js", "css_url": "/javascript/jquery-datatables/css/dataTables.bootstrap4.min.css", } }
In your template:
{% load any_js %} {% include_js "DataTables" %} {% include_css "DataTables" %}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-any-js-1.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for django_any_js-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1499934e293bbcaad29b8edaaefca87dda79eb3df1faeaaea67b80e2866ae1f8 |
|
MD5 | 4df60d8aca0e57ec12d728eb3863f7cb |
|
BLAKE2b-256 | 98c19a36e90da67e107f34f0263ce6701d133987187448efdefd64d55d1f201d |