Skip to content

Comment on Building a toy template engine in Python

Comments

I'm not sure I like the idea of parsing templates with regular expressions. There is a better way, as demonstrated in Robe Pike's video[1] detailing how the Go template language is implemented.

Edit: which isn't meant to detract from the fact that this is a great article.

[1]http://www.youtube.com/watch?v=HxaD_trXwRE

Thanks for the video – this was my first stub at template engines so I'm all for learning about better approaches.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.