File: django-sekizai.txt

package info (click to toggle)
python-django-compressor 2.0-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 896 kB
  • sloc: python: 3,917; makefile: 152
file content (24 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.. _django-sekizai_support:

django-sekizai Support
======================

Django Compressor comes with support for django-sekizai_ via an extension.
django-sekizai provides the ability to include template code, from within
any block, to a parent block. It is primarily used to include js/css from
included templates to the master template.

It requires django-sekizai to be installed. Refer to the `django-sekizai docs`_
for how to use ``render_block``

Usage
-----

.. code-block:: django

    {% load sekizai_tags %}
    {% render_block "<js/css>" postprocessor "compressor.contrib.sekizai.compress" %}


.. _django-sekizai: https://github.com/ojii/django-sekizai
.. _django-sekizai docs: http://django-sekizai.readthedocs.org/en/latest/