Mercurial > public > mercurial-scm > hg
comparison mercurial/templater.py @ 40475:8fa26f3baf30
templater: add wrapper for a single template mapping
This can be used to nest template mappings without inserting a sequence-like
layer. See the next patch for example.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 19 Oct 2018 21:11:30 +0900 |
parents | 28f974d83c0a |
children | ff8b2886c492 |
comparison
equal
deleted
inserted
replaced
40474:2891ee3fcb86 | 40475:8fa26f3baf30 |
---|---|
46 represents a scalar printable value, also supports % operator. | 46 represents a scalar printable value, also supports % operator. |
47 | 47 |
48 mappinggenerator, mappinglist | 48 mappinggenerator, mappinglist |
49 represents mappings (i.e. a list of dicts), which may have default | 49 represents mappings (i.e. a list of dicts), which may have default |
50 output format. | 50 output format. |
51 | |
52 mappingdict | |
53 represents a single mapping (i.e. a dict), which may have default output | |
54 format. | |
51 | 55 |
52 mappedgenerator | 56 mappedgenerator |
53 a lazily-evaluated list of byte strings, which is e.g. a result of % | 57 a lazily-evaluated list of byte strings, which is e.g. a result of % |
54 operation. | 58 operation. |
55 """ | 59 """ |