comparison mercurial/formatter.py @ 34715:f17a0e18c47e

templater: load aliases from [templatealias] section in map file This seems sometimes useful as an alias can be a function, but a template fragment can't.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Oct 2017 18:06:42 +0900
parents 12bfecd0ffe6
children 32c278eb876f
comparison
equal deleted inserted replaced
34714:f4aeb952ab77 34715:f17a0e18c47e
416 - a reference to [templates] in config file 416 - a reference to [templates] in config file
417 - a path to raw template file 417 - a path to raw template file
418 418
419 A map file defines a stand-alone template environment. If a map file 419 A map file defines a stand-alone template environment. If a map file
420 selected, all templates defined in the file will be loaded, and the 420 selected, all templates defined in the file will be loaded, and the
421 template matching the given topic will be rendered. No aliases will be 421 template matching the given topic will be rendered. Aliases won't be
422 loaded from user config. 422 loaded from user config, but from the map file.
423 423
424 If no map file selected, all templates in [templates] section will be 424 If no map file selected, all templates in [templates] section will be
425 available as well as aliases in [templatealias]. 425 available as well as aliases in [templatealias].
426 """ 426 """
427 427