django intercoolerjs
1.0.0
django-intercooler.js는 intercooler.js의 Django 래퍼일 뿐입니다.
장고 1.3 이상
$ pip install django-intercoolerjs
settings.py의 INSTALLED_APPS에 'django.contrib.staticfiles'
및 'intercoolerjs'
추가하기만 하면 됩니다.
INSTALLED_APPS = (
# ...
'django.contrib.staticfiles' ,
'intercoolerjs' ,
# ...
)
정적 파일을 구성하고 배포하려면 Django 정적 파일 설명서를 참조하세요.
다음과 같이 Django 템플릿에서 intercooler.js를 사용합니다.
{% 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>
intercooler.js 버전 1.1.0부터는 jQuery 대신 zepto를 사용할 수도 있습니다. zepto는 아직 django-intercoolerjs와 함께 번들로 제공되지 않습니다.
django-intercoolerjs에서 intercooler.js 릴리스를 쉽게 찾을 수 있도록 intercooler.js 버전 번호를 유지하고 있습니다. 하지만 버전 번호도 필요하므로 다른 점 번호가 추가됩니다.
intercooler.js 버전이 1.0.3인 경우. 현재 릴리스인 django-intercoolerjs의 버전 번호는 1.0.3.0입니다. 이 마지막 숫자는 django-intercoolerjs가 릴리스될 때마다 증가합니다.
데모 프로젝트는 README와 함께 'demo'
폴더에서 찾을 수 있습니다.