| 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.
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.