Comment Comment by erlehmann_ Templates cause bugs. The solitary appropriate solution is an unparser – a component that walks an AST and serializes it.Making sure the result conforms to the grammar of the output language without any unparser would always involve a parser.> As soon as I'm looking at more than one programming or markup language in the same file, I'm looking at spaghetti code.Iain Dooley, December 2011http://www.workingsoftware.com.au/page/Your_templating_engin... parent erlehmann_ 9 years ago
Making sure the result conforms to the grammar of the output language without any unparser would always involve a parser.
> As soon as I'm looking at more than one programming or markup language in the same file, I'm looking at spaghetti code.
Iain Dooley, December 2011
http://www.workingsoftware.com.au/page/Your_templating_engin...