![]() | 1 | initial version |
In askbot, because of the skins module, you need to do this:
from askbot.skins.loaders import get_template
from django.template import Context
template = get_template('some_template.txt')
output = template.render(Context({'some_data': 'some_value'}))
![]() | 2 | No.2 Revision |
In askbot, because of the skins module, you need to do this:
from askbot.skins.loaders import get_template
from django.template import Context
template = get_template('some_template.txt')
output = template.render(Context({'some_data': 'some_value'}))
Here are docs for Jinja2. Jinja2 templating engine is used throughout askbot for the speed.