Mercurial styles problem modifying map

Douglas E. Warner silfreed at silfreed.net
Tue May 20 11:20:08 CDT 2008


I've copied the gitweb templates to my own directory in order to modify them 
and specified the path to my style in my hgrc, like so:

[web]
style = /path/to/my-template/

When I modify parts of the template files or the map, these changes take 
effect immediately.

The problem I'm having is that adding entities to the map doesn't work.

I'm trying to add something like 'orgname = "Mozdev"' to the map file.  When I 
reference this in the template files by either #orgname# or {orgname} nothing 
is output (no errors being thrown, either).

I've put some debug in the templater and found that my map key isn't in the 
passed-in map to the __call__ function, but is in self.cache.

Am I doing something wrong here, or is specifying additional entities not 
supported?

-Doug
-- 
Douglas E. Warner    <silfreed at silfreed.net>    Site Developer
Mozdev.org           http://www.mozdev.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080520/6c146161/attachment.pgp 


More information about the Mercurial-devel mailing list