More readable date format

Dirkjan Ochtman dirkjan at ochtman.nl
Thu Oct 8 07:55:03 UTC 2009


On Wed, Oct 7, 2009 at 23:15, Greg Ward <greg-hg at gerg.ca> wrote:
> One feature that would neat, though, would be the ability to use
> strftime() via the templating system.  E.g.
>
>  date:        {date|isodatesec} ({date|strftime:%a %d %b})
>
> Opinions?  Better ideas?

I love the idea, but the bigger holdup here is having parametrized
filters at all. The templater code sucks.

If you'd like to hack on it, though, that would be great!

Cheers,

Dirkjan

P.S. See also my Jinja2templater extension for my (very imperfect)
solution to The Templater Problem.




More information about the Mercurial mailing list