Can't load text templates
Bug #1073312 reported by
Tom Parker
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-genshi |
New
|
Undecided
|
Unassigned |
Bug Description
I've got some HTML where I want to treat it as text templates, as there's weird things like bits of tags in two files. However, with django-genshi, only MarkupTemplates can be used. Genshi does however have an option to TemplateLoader (see http://
To post a comment you must log in.
This patch adds a "use_text_template" argument to render_to_response. As it turns out, the text templates are weird in other ways (don't support strip_whitespace for example) and so it was simpler to tell django-genshi what I wanted, instead of full customisable templating options, which are much less likely as a use case.