Can't load text templates

Bug #1073312 reported by Tom Parker
6
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://genshi.edgewall.org/wiki/Documentation/0.6.x/loader.html) that allows for specifying what class of template to use, but it's not exposed to the rest of the code.

Revision history for this message
Tom Parker (palfrey) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.