Template::getDocument - jcobban/Genealogy GitHub Wiki
$template->getDocument()
Up: class Template
This method is used to obtain the instance of \Templating\TemplateTag) that is the top of the Document Object Model. From there you can use methods of the \Templating\TemplateTag
class to traverse the DOM and perform actions on the individual tags. It is roughly equivalent to the Javascript document object. For example:
$warn .= $template‑>getDocument()‑>show();
Adds a description of the contents of the Document Object Model (DOM) to the diagnostic messages;
Next: $template->compile()