Code generation templates.