Skip to main content

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:

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:

{% include_js "DataTables" %}
{% include_css "DataTables" %}

Project details


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.0.3.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file django-any-js-1.0.3.tar.gz.

File metadata

  • Download URL: django-any-js-1.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for django-any-js-1.0.3.tar.gz
Algorithm Hash digest
SHA256 18118e68d634c2513d65f63a19f1ee4eb2a2fd62c5efb3beb81c7b3f27542b61
MD5 433d4b658be3725b6079f9a2f2a609db
BLAKE2b-256 9e42b617e32756716db9b5cf8a664589eb92c8c14e4f45be9c1c0b1bde324df0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page