Revision history [back]
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.