Last modified 9 days ago
Home of Django Static Expander
This project allows static pages to be expanded and served with the Django template system.
Example usage in your sites' urls.py file.
url(r'^(?P<url>.*.html)$', 'static_expander.views.serve',
{'document_root' : '/path/to/my/files/',
'directory_index' : ('index.html','index.htm'),
'extensions' : ('.html','.htm'),
'require_auth' : True,
'content_as_template': True,
'perms' : ('can_add',),
'base_template': 'base.html'}),
Latest Features
- Ability for the pages being served to utilize template tags, 'content_as_template' flag controls this behavior.
- dynamic include template tag updated to add no_recurse option and ability to save results into a variable.