function renderProperty($propertyName, $data) { $tpl = new Template($this->{$propertyName}); $this->{$propertyName} = $tpl->apply($data); return $this; }
function updateContent($data) { $tpl = new Template($this->content); $this->content = $tpl->apply($data); return $this; }