django-partial-page

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.


License
Unlicense
Install
pip install django-partial-page==0.4.1