Django wrapper for intercooler.js - AJAX With Attributes: There is no need to be complex.
Project description
django-intercooler.js is just a Django wrapper for intercooler.js.
Requirements
Django 1.3 or later
Installation
$ pip install django-intercoolerjs
Setup
Just add 'django.contrib.staticfiles' and 'intercoolerjs' to INSTALLED_APPS in your settings.py:
INSTALLED_APPS = ( # ... 'django.contrib.staticfiles', 'intercoolerjs', # ... )
Refer to Django static files documentation to configure and deploy static files.
Usage
You use intercooler.js in your Django templates like this:
{% load static %} <!-- only if you also need jQuery --> <script src="{% static "intercoolerjs/js/jquery.js" %}"></script> <!-- this is the minified intercooler.js --> <script src="{% static "intercoolerjs/js/intercooler.min.js" %}"></script>
Since version 1.1.0 of intercooler.js it is also possible to use zepto as an alternative to jQuery. zepto is not yet bundled with django-intercoolerjs.
Version numbers
We are keeping the intercooler.js version number, so that intercooler.js releases can easily be spotted in django-intercoolerjs. But, since we also need a version number, an other dot number is added.
If intercooler.js version 1.0.3. is the current release, django-intercoolerjs will have the version number 1.0.3.0. This last number will be incremented with every release of django-intercoolerjs.
If intercooler.js version 1.0.4 is being released, we keep the last django-intercooler version number, so that features or bugfixes in django-intercoolerjs can be recognized easier: 1.0.3.14 ==> 1.0.4.14
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
Built Distribution
Hashes for django-intercoolerjs-1.1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766d4006cf9d6fb67494a4472e75e57df740594626b5fd5d04af79a1f5e7078d |
|
MD5 | ce2a538af11236c7303c6752a77e83ab |
|
BLAKE2b-256 | c37c8be55935dc6dbd7ab7ff9b939982baa36354921899d5d5f8c98673784449 |
Hashes for django_intercoolerjs-1.1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a231a43ff5b058584f594a4c91219d02f314bea87dbf5a66aab406c213ec3f5 |
|
MD5 | b6a1f2cc8d4d74e57cb2eeaefefac0c6 |
|
BLAKE2b-256 | 227dcb106c1658b359a9823de4485e965e37477bd22510b29f64a15a511db273 |