django-rawinclude 0.1

Small module for Django that gives the ease of loading templates in raw
django-rawinclude is a small module for Django that gives the ease of loading templates in raw. That is, not rendering the content.

This really is useful for embedding javascript templates with sintaxys similar to django. It is more useful than the templatetag "ssi" because it uses all the logic of templateloaders of django.

NOTE1: Not compatible with django cache loader, but in the very near future be implemented cache itself.

NOTE2: it is studying ways to facilitate i18n, either through javascript, either by python.

How use it?

On first step, setup your own templateloaders on settings.py:

RAWINCLUDE_TEMPLATE_LOADERS = [
 'django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader',
]

INSTALLED_APPS = [
 ...
 "rawinclude",
]


And second step, embedd some raw-template in your standard django template:

{% load rawinclude %}
{% raw_include "path/rawtemplate.html" %}

last updated on:
July 9th, 2012, 8:21 GMT
price:
FREE!
developed by:
Andrei Antoukh
homepage:
github.com
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT