django-insert-above 1.0.4

These Django templatetags is a hack making possible to insert "content" in some (maybe above the current or parent template) places
django-insert-above is a Django app that contains a hack making possible to insert 'content' in some (maybe above the current or parent template) places.

More specifically, when we use these tags, there are some Nodes called 'containers' that are rendered after all other nodes are rendered, but placed in it's right posistion. Using this hack, 'containers' may render depending on variables in context that were generated by nodes placed anywhere in template (maybe after it).

MOTIVATION

1. Create convenient way to include media resources in head of HTML page.
2. Handle repetition of resource includes.
3. Make it possible to require resources from included templates.
4. Keep the order of resource includes from different places.

INSTALL

1. (required) add 'insert_above' in INSTALLED_APPS in your settings.py

2. (optional) add these two lines of code somewhere in your project where
they will run for sure. For example in urls.py

from django.template.loader import add_to_builtins
add_to_builtins('insert_above.templatetags.insert_tags')

last updated on:
July 7th, 2011, 20:23 GMT
price:
FREE!
developed by:
German Ilyin
license type:
WTFPL 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

What's New in This Release:
  • added new tag `{% insert_form container form %}`
  • added new tag `{% insert_form container form.media %}`
read full changelog

Add your review!

SUBMIT