Changeset 5384
- Timestamp:
- 09/10/08 22:34:11 (4 months ago)
- Files:
-
- trunk/tg/configuration.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tg/configuration.py
r5371 r5384 113 113 self.serve_static = True 114 114 self.use_legacy_renderer = True 115 115 self.auto_reload_templates = True 116 116 117 117 def setup_paths(self): … … 183 183 input_encoding='utf-8', output_encoding='utf-8', 184 184 imports=['from webhelpers.html import escape'], 185 default_filters=['escape']) 185 default_filters=['escape'], 186 filesystem_checks=self.auto_reload_templates) 186 187 187 188 self.render_functions.mako = render_mako … … 196 197 genshi.template.filters.insert(0, Translator(ugettext)) 197 198 loader = TemplateLoader(search_path=self.paths.templates, 198 auto_reload= True)199 auto_reload=self.auto_reload_templates) 199 200 200 201 config['pylons.app_globals'].genshi_loader = loader … … 208 209 209 210 config['pylons.app_globals'].jinja_env = Environment(loader=ChoiceLoader( 210 [FileSystemLoader(path) for path in self.paths['templates']])) 211 [FileSystemLoader(path, auto_reload=self.auto_reload_templates) 212 for path in self.paths['templates']])) 211 213 # Jinja's unable to request c's attributes without strict_c 212 214 config['pylons.strict_c'] = True