Include JavaScript 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
File details
Details for the file django-any-js-1.0.3.post1.tar.gz
.
File metadata
- Download URL: django-any-js-1.0.3.post1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32306643d4989b3cdbbf6a87bb43ca4d5ca35863c96ad96a8bc0d50bcf9d4ab4 |
|
MD5 | cf5a1b126c44bcadb4f93e19a49c72bc |
|
BLAKE2b-256 | 9d6b9a6465fed8416dd0edd85a1ca445b6a5fbd3773c4b3b90c04704e1a704a4 |