hgweb and templating
Trygve Laugstøl
trygvis at inamo.no
Mon Dec 1 20:22:18 UTC 2008
Matt Mackall wrote:
> On Mon, 2008-11-24 at 16:04 +0100, Trygve Laugstøl wrote:
>> Hi!
>>
>> I've been trying to customize the look&feel of my hgweb to match the
>> rest of the layout of my site, but I haven't been able to find a
>> reference of how to customize it.
>>
>> Are there any reference documentation on how to write my own templates?
>> Is hgweb using any standard templating mechanism that I can look at?
>
> http://www.selenic.com/mercurial/wiki/index.cgi/Theming
It is possible to add my own keys to the map?
I'm trying to add some common header stuff in a "headerend" template
like this:
in my map file I have:
headerend = headerend.tmpl
in summary.tmpl I have:
#header#
<title>#repo|escape#: Summary</title>
#headerend#
in headerend.tmpl:
</head>
<body>
<h1>Welcome</h1>
But the "#headerend#" string is just replaced with an empty string.
--
Trygve
More information about the Mercurial
mailing list