How do I use a shell command as a filter?
Dave Hinton
beakerchu at googlemail.com
Tue Jul 22 03:42:38 CDT 2008
How do I use a shell command as a filter in mercurial's templating system?
Context:
I am using hgwebdir.cgi to make my repositories visible on the web.
Some of my files are in markdown format, so I would like to be able to
view them as filtered by markdown into html. (At some point I might
like to set up syntax colouring on my source files too, but not yet.)
I could do this by filtering the output of hgwebdir.cgi, but it seems
cleaner to do it all in hgwebdir.cgi if I can.
I've read chapter 11 of hgbook.red-bean.com, but I can't see anything
about filtering through a shell command there.
I'm using mercurial version 0.9.1, as comes with Debian stable (etch).
Thanks,
/Dave
More information about the Mercurial
mailing list