News for hackers. Stuff that matters.
Re:Pure python html templating using with statements by toyg on Sunday December 11, 2011 @03:35PM (#3340993)
I'm pretty sure this has been done. I remember seeing something extremely similar while going through several of the umpteen python web frameworks and thinking "well, it's just html with parentheses rather than angled bracket and an additional leaky abstraction on top".
Re:Pure python html templating using with statements by d0mine on Sunday December 11, 2011 @10:05PM (#3342064)
the gist contains example using lxml:

  E.html(
    E.head(...),
    E.body(...))