Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-insert-above 1.0.4

    Download button

    No screenshots available
    Downloads: 149  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    German Ilyin | More programs
    WTFPL / FREE
    July 7th, 2011, 20:23 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-insert-above description

    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')



    Product's homepage

    Requirements:

    · Python
    · Django

    What's New in This Release: [ read full changelog ]

    · added new tag `{% insert_form container form %}`
    · added new tag `{% insert_form container form.media %}`

      


    TAGS:

    Django templatetags | template tags | Django | template | tags

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM