django-partial-page 0.4.1
Middleware that extracts {% block-s %} from pages and sends them as JSON. This allows the clients update parts of the pages, which is useful for Ajax apps and sites using History.PushState. If /mypage/ has {% block main_content %} in the template, make a request /mypage/?partial=main_content, and you'll receive a JSON: {"main_content": "..."}. The example Django project in the BitBucket contains a working JavaScript module that handles these requests and does something more.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-partial-page-0.4.1.tar.gz (md5) | Source | 2011-08-11 | 3KB | 256 | |
- Author: Dmitri Lebedev
- Home Page: https://bitbucket.org/siberiano/django-partial-page/
- License: Public Domain
- Package Index Owner: siberiano
- DOAP record: django-partial-page-0.4.1.xml
