Cado is a mature code generation language that operates on standard templates with embedded macros.