I am attempting to load a temple and within that template is a partial(nested template). Shouldn't the partials constructor render the content
partial? Is the logic done wrong?
Similar question here but the implementation is different and no answer. The question appeared to die or was directed to somewhat similar question, but mine is also different in implementation.
base.mustache:
<body>
{{>content}}
</body>
Mustache constructor:
if(!isset($this->mustache)){
$options = array(
'loader'=> new Mustache_Loader_FilesystemLoader('path/to/templates/'),
'partials_loader' => new Mustache_Loader_FilesystemLoader('path/to/partials'),
'partials' => array(
'content'=> $this->module->tplFile
)
);
$this->mustache = new Mustache_Engine($options);
}
Render template:
public function display()
{
$this->mustache->render('base.mustache');
}