Christoph Hack | e9e43bb | 2008-04-13 23:35:48 +0200 | [diff] [blame] | 1 | from jinja2 import Environment, FileSystemLoader |
Armin Ronacher | 9997f96 | 2007-02-28 20:37:51 +0100 | [diff] [blame] | 2 | e = Environment(loader=FileSystemLoader('templates')) |
| 3 | |
Christoph Hack | e9e43bb | 2008-04-13 23:35:48 +0200 | [diff] [blame] | 4 | from jinja2.parser import Parser |
| 5 | from jinja2.translators.python import PythonTranslator |
Armin Ronacher | 9997f96 | 2007-02-28 20:37:51 +0100 | [diff] [blame] | 6 | |
Armin Ronacher | 34a18bf | 2007-03-11 15:09:44 +0100 | [diff] [blame] | 7 | tmpl = e.loader.load('c.html') |
| 8 | print tmpl.render() |