Mercurial > p > roundup > code
comparison roundup/cgi/engine_jinja2.py @ 4748:e339583eae8e
templating: rename precompileTemplates to precompile
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 21 Jan 2013 23:51:39 +0300 |
| parents | 2d6959f1d2df |
| children | 12b029655c05 |
comparison
equal
deleted
inserted
replaced
| 4747:955860a18e12 | 4748:e339583eae8e |
|---|---|
| 23 [ ] implement VERSION file in environment for auto | 23 [ ] implement VERSION file in environment for auto |
| 24 upgrade | 24 upgrade |
| 25 [ ] figure out what to do with autoescaping - it is disabled | 25 [ ] figure out what to do with autoescaping - it is disabled |
| 26 by default in Jinja2 | 26 by default in Jinja2 |
| 27 | 27 |
| 28 [ ] precompileTemplates is a stub | 28 [ ] precompile() is a stub |
| 29 | 29 |
| 30 [ ] add {{ debug() }} dumper to inspect available variables | 30 [ ] add {{ debug() }} dumper to inspect available variables |
| 31 https://github.com/mitsuhiko/jinja2/issues/174 | 31 https://github.com/mitsuhiko/jinja2/issues/174 |
| 32 """ | 32 """ |
| 33 | 33 |
| 57 | 57 |
| 58 def load(self, tplname): | 58 def load(self, tplname): |
| 59 #src, filename = self.check(tplname) | 59 #src, filename = self.check(tplname) |
| 60 return Jinja2ProxyPageTemplate(self._env.get_template(tplname + '.html')) | 60 return Jinja2ProxyPageTemplate(self._env.get_template(tplname + '.html')) |
| 61 | 61 |
| 62 def precompileTemplates(self): | 62 def precompile(self): |
| 63 pass | 63 pass |
| 64 | 64 |
| 65 class Jinja2ProxyPageTemplate(TemplateBase): | 65 class Jinja2ProxyPageTemplate(TemplateBase): |
| 66 def __init__(self, template): | 66 def __init__(self, template): |
| 67 self._tpl = template | 67 self._tpl = template |
