public function get()
{
$permalink = $this->getView()->getParam('this.permalink', null);
if ($permalink === null) {
return rtrim($this->getView()->getOutputDir(), '/') . '/' . ltrim($this->getRelativeFile('entries', false), '/') . '.html';
}
$class = 'Phrozn\\Site\\View\\OutputPath\\Entry\\' . ucfirst($permalink);
if (!class_exists($class)) {
$class = 'Phrozn\\Site\\View\\OutputPath\\Entry\\Parametrized';
}
$object = new $class($this->getView());
return $object->get();
}