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.1.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file django-any-js-1.1.1.tar.gz
.
File metadata
- Download URL: django-any-js-1.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.9 Linux/5.15.0-2-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5458baad354a1397c447502ba37fa0285c0dedefc6f07e0649891606772f951d |
|
MD5 | 4936f873216f07724a88b4405216d10e |
|
BLAKE2b-256 | 1ddf7bbcd7899e8d6b17285cd6ab74a4c29cdfbf1ee42ff6040f0c716fd0b042 |
Provenance
File details
Details for the file django_any_js-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_any_js-1.1.1-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.9 Linux/5.15.0-2-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2c589ba48207fcc3436a1fe0fea2e3a6502840d714029614588081c989d10d |
|
MD5 | 9d4c09cd48aed28d822f934f8db02f91 |
|
BLAKE2b-256 | bfa52711d101b7294a6cba5cd9aa0edf424c20907d8e262c00e741b4778bbd11 |