Skip to content

Django template tag. Combination of inheritance and include principles.

Notifications You must be signed in to change notification settings

appqui/django-tag-include

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

includetag.py

Django template tag. Combination of inheritance and include principles.

Requirements

Django v1.0+. Created at Summer 2009. Have no idea, if it's working with current build.

Installation

Put file "includetag.py" to your app templatetag directory.

In template load includetag by load call: {% load includetag %} 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:

<div>
   something in control
   {% part one %}{% endpart %}
   more
   {% part two %}{% endpart %}
   end the footer
</div>

About

Django template tag. Combination of inheritance and include principles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages