retrieve custom 'name:value' pairs in the [web] section, from the templates

Paolo Berto pberto at jupiter-jazz.com
Fri Dec 5 06:24:20 CST 2008


Hello,

I'd like to add custom 'name:value' pairs in the [web] section of hgrc  
files of my repos, eg:

	[web]
	licensetype = BSD


And then retrieve this information from my hgwebdir template, is it  
actually possible? What is the syntax to retrieve this properly, I  
assume this should be done in index.tmpl & relative map file.

Would this be correct?

         <th><a href="?sort={sort_licensetype}">License Type</a></th> 	 
# index.tmpl

	{licensetype|license}	# map


cheers,
Paolo




More information about the Mercurial mailing list