News for hackers. Stuff that matters.
Re:Pure python html templating using with statements by abecedarius on Monday December 12, 2011 @12:21AM (#3342414)
Looks good. My own module of this sort auto-escapes HTML special characters in strings fed to it, by default -- it looks like yours doesn't do this, at least at first glance. Is that right?

OTOH I think I like your syntax better.

Re:Pure python html templating using with statements by catch404 on Monday December 12, 2011 @03:37AM (#3342844)
Thanks, that would be a good approach, mine is currently very barebones! just trying to get the syntax right and get a feel for using it in actual projects - hope to put up a real sample soon.