Révision 9003c07e
Ajouté par Jérôme Schneider il y a plus de 9 ans
mandaye/template.py | ||
---|---|---|
2 | 2 |
from mako.lookup import TemplateLookup |
3 | 3 |
from mako.template import Template |
4 | 4 |
|
5 |
from mandaye import config, global_config
|
|
5 |
from mandaye import config |
|
6 | 6 |
|
7 |
templates_directories = config.templates_directories + [global_config.template_directory]
|
|
7 |
templates_directories = config.templates_directories + [config.template_directory] |
|
8 | 8 |
mylookup = TemplateLookup(directories=templates_directories, |
9 | 9 |
input_encoding='utf-8') |
10 | 10 |
|
Formats disponibles : Unified diff
Centralized config.py into mandaye core
All the configuration is now in ini files.
You could have 3 levels of ini files : * default mandaye core ini file * default mandaye project ini file * optional ini file loading with --config option
Closes #5495