Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Okay, I figured it out... I wasn't importing Template :)

Once I import Template, I add this to loaders.py:

def render_text(text, data, request):
        context = RequestContext(request, data)
        template = Template(text)
        return template.render(context)

And now I can send the text there first, then to render_into_skin.

The only problem I have with this is {% trans %} tags don't work. Otherwise, you can at least include settings variables now.