1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
Metadata-Version: 2.1
Name: django-any-js
Version: 1.1
Summary: Include JavaScript/CSS libraries with readable template tags
Home-page: https://edugit.org/AlekSIS/libs/django-any-js
License: Apache-2.0
Author: Dominik George
Author-email: dominik.george@teckids.org
Maintainer: Dominik George
Maintainer-email: dominik.george@teckids.org
Requires-Python: >=3.7,<4.0
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: Framework :: Django :: 3.1
Classifier: Framework :: Django :: 3.2
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: Django (>=2.2,<4.0)
Project-URL: Repository, https://edugit.org/AlekSIS/libs/django-any-js
Description-Content-Type: text/x-rst
Django Any-JS
=============
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" %}
|