public function render(array $chapter, array $params = array()) {
        $partial = 'partials/chapters/' . ($chapter['type'] ?: 'default') . '.phtml';
        $params['content'] = $chapter['content'];
        return $this->view->partial($partial, 'default', $params);
    }