Révision c87f87c1
Ajouté par Jérôme Schneider il y a plus de 9 ans
mandaye/template.py | ||
---|---|---|
4 | 4 |
|
5 | 5 |
from mandaye import config, global_config |
6 | 6 |
|
7 |
mylookup = TemplateLookup(directories=[config.template_directory, global_config.template_directory], |
|
7 |
templates_directories = config.templates_directories + [global_config.template_directory] |
|
8 |
mylookup = TemplateLookup(directories=templates_directories, |
|
8 | 9 |
input_encoding='utf-8') |
9 | 10 |
|
10 | 11 |
def serve_template(templatename, encoding='utf-8', **kwargs): |
Formats disponibles : Unified diff
templates: manage multi templates directories in the configuration