- $contents = parent::render($template);
- $template->loadTemplateFile('bife_page.html');
- $template->setVariable($this->attrs);
- $template->setVariable('CONTENTS', $contents);
- return $template->get();
+ $this->attrs['CONTENTS'] = parent::render($template);
+ $template->setGroup();
+ $out = $template->parse('bife_page', $this->attrs);
+ $template->unsetGroup();
+ return $out;