// Prepare a template instance
$templateInstance = $this->prepareTemplateInstance($appInstance);
+ // Assign application data
+ $templateInstance->assignApplicationData($appInstance);
+
// Load the master template
$masterTemplate = $appInstance->getMasterTemplate();