I wrote this for fun in a couple of hours this past weekend and without incorporating any exceptional optimizations, it actually outperformed other "raw HTML"-capable engines like ejs and doT (which claims to be the "fastest"): https://github.com/mscdex/zup/wiki/Benchmarks