djangosnippets.org: Latest snippets tagged with 'templating'https://djangosnippets.org/tags/templating/2008-10-09T10:36:55.993273-05:00direct to template from a subdir
2008-10-09T10:36:55.993273-05:00Scannerhttps://djangosnippets.org/snippets/1120/<p>I needed a way to quickly get a direction of html pages templated such that another person could drop new templates in to a subdirectory and without modifying urls.py or views.py get them up and being displayed.</p>
<p>Now, the direct_to_template view provided django.views.generic.simple can sort of do this with a …</p>
Freely redistributableMake anything into a template
2008-02-06T00:35:25.188202-06:00realmachttps://djangosnippets.org/snippets/586/<p>This is a quick and dirty way to reuse the Django templating system for your own ends. Just pop in the familiar Django template syntax into whatever content you like and any chunk of content can be a template. This is great if you need to wrap data in HTML …</p>
Freely redistributable