django-tag-include


Include tag with insert code blocks

Give possibility to merge functionality of inheritance and include.

To install it, put file "includetag.py" to your app templatetag directory.

In template load includetag by load call: {% load includetag %}

And in place of inclusion - put code, similar to my sample:

```

{% include "control.html" %} {% part one %} put inside {% endpart %} {% part two %} put inside one more {% endpart %} {% endinclude %}

```

Inside control.html:

```

something in control {% part one %}{% endpart %} more {% part two %}{% endpart %} end the footer

```

Project Information

Labels:
Django Python