Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: django-any-js
3 Version: 1.1
4 Summary: Include JavaScript/CSS libraries with readable template tags
5 Home-page: https://edugit.org/AlekSIS/libs/django-any-js
6 License: Apache-2.0
7 Author: Dominik George
8 Author-email: [email protected]
9 Maintainer: Dominik George
10 Maintainer-email: [email protected]
11 Requires-Python: >=3.7,<4.0
12 Classifier: Environment :: Web Environment
13 Classifier: Framework :: Django
14 Classifier: Framework :: Django :: 2.2
15 Classifier: Framework :: Django :: 3.0
16 Classifier: Framework :: Django :: 3.1
17 Classifier: Framework :: Django :: 3.2
18 Classifier: License :: OSI Approved :: Apache Software License
19 Classifier: Operating System :: OS Independent
20 Classifier: Programming Language :: Python
21 Classifier: Programming Language :: Python :: 3
22 Classifier: Programming Language :: Python :: 3.7
23 Classifier: Programming Language :: Python :: 3.8
24 Classifier: Programming Language :: Python :: 3.9
25 Classifier: Topic :: Internet :: WWW/HTTP
26 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
27 Requires-Dist: Django (>=2.2,<4.0)
28 Project-URL: Repository, https://edugit.org/AlekSIS/libs/django-any-js
29 Description-Content-Type: text/x-rst
30
31 Django Any-JS
32 =============
33
34 Description
35 -----------
36
37 Django-Any-JS helps you at including any combination of JavaScript/CSS
38 URLs in your site, with readable settings and template tags.
39
40 Usage
41 -----
42
43 In your settings:
44
45 ::
46
47 INSTALLED_APPS = [
48 ...,
49 "django_any_js",
50 ...,
51 ]
52 ANY_JS = {
53 "DataTables": {
54 "js_url": "/javascript/jquery-datatables/dataTables.bootstrap4.min.js",
55 "css_url": "/javascript/jquery-datatables/css/dataTables.bootstrap4.min.css",
56 }
57 }
58
59 In your template:
60
61 ::
62
63 {% load any_js %}
64 {% include_js "DataTables" %}
65 {% include_css "DataTables" %}
66