/** * Renders a specific section of the template * * This allows fine-grained modularization of the different * message parts (subject, plain/html body) * * @param string $section Name of the section to render * * @return string */ private function renderSection($section) { $this->view->assign('Section', $section); return trim($this->view->render()); }