Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: sitescripts/cms/converters.py

Issue 6439145228468224: Added custom template loader to CMS in order to enable {% include %} and {% import %} in jinja temp… (Closed)
Patch Set: Created Dec. 11, 2013, 6:31 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sitescripts/cms/sources.py » ('j') | sitescripts/cms/sources.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sitescripts/cms/converters.py
===================================================================
--- a/sitescripts/cms/converters.py
+++ b/sitescripts/cms/converters.py
@@ -197,7 +197,7 @@
filters[func] = getattr(module, func)
filters[func].module_ref = module # Prevent garbage collection
- self._env = get_custom_template_environment(filters)
+ self._env = get_custom_template_environment(filters, self._params["source"].get_template_loader())
def get_html(self, source):
template = self._env.from_string(source)
« no previous file with comments | « no previous file | sitescripts/cms/sources.py » ('j') | sitescripts/cms/sources.py » ('J')

Powered by Google App Engine
This is Rietveld