Code generation template