Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/templater.py @ 4335:66a3fe30f9fc
minor typo fix in templater's docstring
author | TK Soh <teekaysoh@yahoo.com> |
---|---|
date | Tue, 10 Apr 2007 12:24:28 -0500 |
parents | 0dd07dd63db3 |
children | 35ad84669ca5 |
comparison
equal
deleted
inserted
replaced
4333:4f721e96f1de | 4335:66a3fe30f9fc |
---|---|
26 template expansion works like this. a map file contains key=value | 26 template expansion works like this. a map file contains key=value |
27 pairs. if value is quoted, it is treated as string. otherwise, it | 27 pairs. if value is quoted, it is treated as string. otherwise, it |
28 is treated as name of template file. | 28 is treated as name of template file. |
29 | 29 |
30 templater is asked to expand a key in map. it looks up key, and | 30 templater is asked to expand a key in map. it looks up key, and |
31 looks for atrings like this: {foo}. it expands {foo} by looking up | 31 looks for strings like this: {foo}. it expands {foo} by looking up |
32 foo in map, and substituting it. expansion is recursive: it stops | 32 foo in map, and substituting it. expansion is recursive: it stops |
33 when there is no more {foo} to replace. | 33 when there is no more {foo} to replace. |
34 | 34 |
35 expansion also allows formatting and filtering. | 35 expansion also allows formatting and filtering. |
36 | 36 |