Template::compile - jcobban/Genealogy GitHub Wiki

$template->compile()

Up: class Template

This method is called to convert the template and all of its parameters into a completed document which is returned as a string. First it assembles the template by incorporating the base file identified in the constructor and all of the files identified by calls to includeSub, except those that specified the "after" option, to create the base template. Then it applies all of the tag specific updates supplied by calls to Template::updateTag or TemplateTag::update. Finally it applies the simple text substitutions defined by calls to method set and includes the sub-templates identified by calls to includeSub that specified the "after" option.

Next: $template->display()