Extract code generation to a common method.
Composite template generator capable of producing all the templates in a single call.
Now sample project compiles the code generated by the template (code generated by generated code generator)