Updated generator to use require for all templates.