public function render()
{
// need the checkout
$checkOut = $GLOBALS['VC']->checkout($this->_file->getPath(), $this->_revision);
// Pretty-print the checked out copy */
if ($this->_file->mimeType == 'application/octet-stream') {
$this->_view->mimeType = 'text/plain';
} else {
$this->_view->mimeType = $this->_file->mimeType;
}
$this->_view->title = $this->_file->getFileName();
$this->_view->pretty = Chora::pretty($this->_view->mimeType, $checkOut);
if ($this->_view->mimeType == 'text/html') {
$this->_view->pretty->setConfigParam('inline', true);
}
return $this->_view->render('app/views/file/html.html.php');
}