sapling/mercurial/templates
Gregory Szorc 29b466d186 show: construct changeset templater during dispatch
Previously, we constructed a formatter from a specific template
topic. Then from show() we reached into the internals of the
formatter to resolve a template string to be used to construct
a changeset templater.

A downside to this approach was it limited us to having the
entire template defined in a single entry in the map file. You
couldn't reference other entries in the map file and this would
lead to long templates and redundancy in the map file.

This commit teaches @showview how to instantiate a changeset
templater so we can construct a templater with full access to
the map file. To prove it works, we've split "showwork" into
components.
2017-06-24 12:47:25 -07:00
..
atom hgweb: reindent atom/changelogentry.tmpl 2016-06-29 22:48:32 +08:00
coal coal: use inheritance to derive from paper 2016-08-17 13:43:13 -05:00
gitweb hgweb: plug followlines action in annotate view 2017-06-21 17:17:17 +02:00
json hgweb: expose list of per-repo labels to templates 2016-06-30 18:59:53 -07:00
monoblue hgweb: consolidate search form for monoblue 2017-06-09 13:41:10 -07:00
paper hgweb: plug followlines action in annotate view 2017-06-21 17:17:17 +02:00
raw hgweb: replace 'shortlog' with 'changelog' in raw changelog template 2013-08-16 21:41:19 +04:00
rss hgweb: add missing slash to file log url in rss style 2016-12-08 23:59:36 +08:00
spartan hgweb: support Content Security Policy 2017-01-10 23:37:08 -08:00
static hgweb: plug followlines action in annotate view 2017-06-21 17:17:17 +02:00
map-cmdline.bisect map-cmdline.bisect: rewrite to just %include the default template 2015-05-10 13:48:10 -04:00
map-cmdline.changelog setup: install translation files as package data 2009-12-01 16:06:10 +01:00
map-cmdline.compact compact: add color labels to -Tcompact 2016-04-08 16:05:52 +00:00
map-cmdline.default templates: shorten definition of changeset labels in command-line style 2017-03-28 22:38:45 +02:00
map-cmdline.phases template-phases: extend default style instead of duplicating it 2015-04-25 21:42:07 +09:00
map-cmdline.show show: construct changeset templater during dispatch 2017-06-24 12:47:25 -07:00
map-cmdline.status log: fix status template to list copy source per dest (issue5155) 2016-03-24 22:55:56 +09:00
map-cmdline.xml templater: add new docheader/footer components for XML (issue4135) 2015-08-26 16:27:14 -05:00