Commit Graph

19 Commits

Author SHA1 Message Date
Vadim Gelfer
f6f81d8d37 move changeset_templater into templater module. 2006-05-03 10:25:28 -07:00
Lee Cantey
da54525c97 Windows py2exe version didn't handle names given to templatepath() correctly 2006-03-24 10:33:18 -08:00
Vadim Gelfer
2e0f1be283 add changelog style to command line template.
to use, "hg log --style=changelog".  makes different output with no
flags, -q, -v, --debug.

templater module has new template filters for this.
email - committer email address
fill68 - refill text to 68 colums
fill76 - refill text to 76 colums
tabindent - prefix every not empty line with tab
shortdate - iso 8631 date, no time zone
stringify - turn template iterator into string
2006-03-21 23:29:21 -08:00
Shun-ichi Goto
9730814eb2 Duplicate cache when creating templater. 2006-03-18 09:51:25 -08:00
Vadim Gelfer
d737c6c2b3 fix template bug that made hgweb break.
problem found by Shun-ichi Goto <shunichi.goto@gmail.com>.
this fix tested with command template and hgweb templates.
2006-03-15 11:28:00 -08:00
Shun-ichi GOTO
e268844d18 Fix the py2exe template path problem (issue:152) again.
This patch is same with 1834:d15fc6ce9d87 which is leaved behind by
1897:d8f0b3f8f638.
2006-03-15 06:39:04 +01:00
Vadim Gelfer
49cb97855a make --style=compact look for map-cmdline.compact.
change name of key in map file from changelog to changeset.
rename command map files to start with map-cmdline.
rename ui.logmap to ui.style in hgrc.

now --style=foo does this:
tries to open foo as file.
tries as map-cmdline.foo in template path.
tries as foo in template path.
2006-03-04 15:15:18 -08:00
Vadim Gelfer
5de8501662 fix some things people wanted to be cleaner.
rename --map-file to --style.
no more -t alias for --template.
update docs.
rename template entry in map files to changelog.
if --verbose, use changelog_verbose if there, else changelog.
2006-03-04 12:40:10 -08:00
Vadim Gelfer
8f15689d73 hide some functions behind lambdas, so demandload is useful. 2006-02-28 07:24:54 -08:00
Vadim Gelfer
9640cecf04 add doc comments to template code. 2006-02-27 15:07:25 -08:00
Vadim Gelfer
1a7e33442f add iso date template filter. 2006-02-27 12:50:49 -08:00
Vadim Gelfer
21aff25a2a improve template errors when something is wrong. 2006-02-27 12:41:20 -08:00
Vadim Gelfer
94422c87f2 improve templating.
allow {foo} as well as #foo#.
add new functions for changeset authors.
2006-02-27 11:33:09 -08:00
Vadim Gelfer
957bd7ed50 make parsestring work with strings that do not have quotes. 2006-02-27 11:18:56 -08:00
Vadim Gelfer
e8d01e14ea use safer string parser for template engine. 2006-02-27 09:35:43 -08:00
Vadim Gelfer
41badccf28 move repeated work out of inner loops. 2006-02-27 09:15:59 -08:00
Vadim Gelfer
9f0cbe341c many small changes to templater.
get string code to parse escapes. uses eval now, should parse strings
itself soon.

let caller check if fragment is defined using "in".

make templatepath take optional file name.
2006-02-26 20:53:37 -08:00
Vadim Gelfer
1db1ed4f1f move hgweb.templatepath into templater 2006-02-26 13:09:26 -08:00
Vadim Gelfer
5b07616ef3 move hgweb template code out to templater 2006-02-26 12:59:28 -08:00