Django wrapper for intercooler.js - AJAX With Attributes: There is no need to be complex.
Project description
Django intercooler.js
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.
Demo
A demo project can be found in the 'demo'
folder along with a
README.
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.2.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cf4e9f553772fc7869bb62af2d716c45c38bcce89701fbcefc77e76d581cece |
|
MD5 | 3de61f3b14f84553b2f56290296c12a8 |
|
BLAKE2b-256 | 12f162c1c77861f9f8ba3f0c59aacb0e4f8a36a9907c0d86a7d9aa2791694871 |
Hashes for django_intercoolerjs-1.2.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d52dc3bfa6c31eb7073a92cfb7d03a2cf50048e9ed44f294ae6105e1dd00941 |
|
MD5 | db1f078b1814b01ee88a96abe34f4a12 |
|
BLAKE2b-256 | 1f4c68bedc8b4aae8ee8b009075674d240f3eb8eb10cc0bf4262e29253a7438c |