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.2.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file django_any_js-1.2.tar.gz
.
File metadata
- Download URL: django_any_js-1.2.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.5.0-1-rt-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a44c43db23c3793a0a870fae2c841dd1a9d051ef1c0f520764589278fc8d7e16 |
|
MD5 | 5ba03e44c764dd4a47fdea366479f6ac |
|
BLAKE2b-256 | 71de1b74dcc421b79b68f1352d368fbb5db250d73e6c6ee9fc73ea59e7705818 |
File details
Details for the file django_any_js-1.2-py3-none-any.whl
.
File metadata
- Download URL: django_any_js-1.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.5.0-1-rt-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 642db96e3d4f4a0812ba6a5d59aa17f05d41d8acabe83de8464527e578c84d25 |
|
MD5 | c26940b638d796fd0556e093da789559 |
|
BLAKE2b-256 | 073d0ac41788381d981e4ac138af95d570dd9d88736fa1ef3515c39440f1194b |