Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Sub-templates provide a way for you to organize complex code generation processes from a single template. Just as subroutines in a computer program let you call bits of logic from a main program flow, sub-templates let you call bits of code generation logic from a main template.

To use a sub-template, you must first register the sub-template in the parent template. You can then merge properties from the sub-template into the parent template, copy properties from the parent template to the sub-template, set properties in the sub-template, and render the sub-template.

  • No labels