coal: use inheritance to derive from paper
authorMatt Mackall <mpm@selenic.com>
Wed, 17 Aug 2016 13:43:13 -0500
changeset 29813 5f86818c95e5
parent 29812 01f036f0e40b
child 29814 cbf9984a7957
coal: use inheritance to derive from paper This illustrates how much simpler this approach is, in particular the effect of map-relative paths.
mercurial/templates/coal/map
--- a/mercurial/templates/coal/map	Wed Aug 17 13:40:27 2016 -0500
+++ b/mercurial/templates/coal/map	Wed Aug 17 13:43:13 2016 -0500
@@ -1,34 +1,2 @@
-%include paper/map
-
-footer = ../paper/footer.tmpl
-search = ../paper/search.tmpl
-
-changelog = ../paper/shortlog.tmpl
-shortlog = ../paper/shortlog.tmpl
-shortlogentry = ../paper/shortlogentry.tmpl
-graph = ../paper/graph.tmpl
-
-help = ../paper/help.tmpl
-helptopics = ../paper/helptopics.tmpl
-
-diffstatlink = ../paper/diffstat.tmpl
-diffstatnolink = ../paper/diffstat.tmpl
-changelogentry = ../paper/shortlogentry.tmpl
-searchentry = ../paper/shortlogentry.tmpl
-changeset = ../paper/changeset.tmpl
-manifest = ../paper/manifest.tmpl
-
-filerevision = ../paper/filerevision.tmpl
-fileannotate = ../paper/fileannotate.tmpl
-filediff = ../paper/filediff.tmpl
-filecomparison = ../paper/filecomparison.tmpl
-filelog = ../paper/filelog.tmpl
-filelogentry = ../paper/filelogentry.tmpl
-
-tags = ../paper/tags.tmpl
-bookmarks = ../paper/bookmarks.tmpl
-branches = ../paper/branches.tmpl
-
-index = ../paper/index.tmpl
-notfound = ../paper/notfound.tmpl
-error = ../paper/error.tmpl
+__base__ = ../paper/map
+header = header.tmpl