public function htmlOnlyAction($path)
    {
        try {
            $this->setPath($path);
        } catch (NotFoundException $e) {
            throw $e;
        }

        $dbfile = new WDBFile($this->getpath());
        if (!$dbfile->isFile()) {
            throw new NotFoundException(
                'Can not send raw content of a directory!',
                0, null, TemplateHelper::getRoute($dbfile->getWDBPath())
            );
        }

        $md_parser  = $this->wdb->getMarkdownParser();
        $md_content = $md_parser->transformSource($this->getPath());
        return array('layout_empty_html', 
            $md_content->getBody(),
            array('page_notes' => $md_content->getNotesToString())
        );
    }
public function htmlOnlyAction($path)
    {
        try {
            $this->setPath($path);
        } catch (NotFoundException $e) {
            throw $e;
        }

        $dbfile = new WDBFile($this->getpath());
        if (!$dbfile->isFile()) {
            throw new NotFoundException(
                'Can not send raw content of a directory!',
                0, null, TemplateHelper::getRoute($dbfile->getWDBPath())
            );
        }

        $md_parser  = $this->wdb->getMarkdownParser();
        $md_content = $md_parser->transformSource($this->getPath());
        return array('layout_empty_html', 
            $md_content->getBody(),
            array('page_notes' => $md_content->getNotesToString())
        );
    }
public function htmlOnlyAction ( $ path ) { try { $ this -> setPath ( $ path ) ; } catch ( NotFoundException $ e ) { throw $ e ; } $ dbfile = new WDBFile ( $ this -> getpath ( ) ) ; if ( ! $ dbfile -> isFile ( ) ) { throw new NotFoundException ( 'Can not send raw content of a directory!' , 0 , null , TemplateHelper :: getRoute ( $ dbfile -> getWDBPath ( ) ) ) ; } $ md_parser = $ this -> wdb -> getMarkdownParser ( ) ; $ md_content = $ md_parser -> transformSource ( $ this -> getPath ( ) ) ; return array ( 'layout_empty_html' , $ md_content -> getBody ( ) , array ( 'page_notes' => $ md_content -> getNotesToString ( ) ) ) ; }
HTML only version of a path

@param string $path
@return array
@throws \WebDocBook\Exception\NotFoundException
HTML only version of a path