protected function _render($story, $paths, $data)
    {
        settype($paths, 'array');

        foreach ($paths as $path) {
            if ($this->_template->findFile($path)) {
                return $this->_template->loadFile($path, $data)->render();
            }
        }

        try {
            return $this->_template->loadTemplate($story->name, $data)->render();
        } catch (Exception $e) {
            print '<small>file missing :'.$path.'</small>';
        }
    }
protected function _render($story, $paths, $data)
    {
        settype($paths, 'array');

        foreach ($paths as $path) {
            if ($this->_template->findFile($path)) {
                return $this->_template->loadFile($path, $data)->render();
            }
        }

        try {
            return $this->_template->loadTemplate($story->name, $data)->render();
        } catch (Exception $e) {
            print '<small>file missing :'.$path.'</small>';
        }
    }
protected function _render ( $ story , $ paths , $ data ) { settype ( $ paths , 'array' ) ; foreach ( $ paths as $ path ) { if ( $ this -> _template -> findFile ( $ path ) ) { return $ this -> _template -> loadFile ( $ path , $ data ) -> render ( ) ; } } try { return $ this -> _template -> loadTemplate ( $ story -> name , $ data ) -> render ( ) ; } catch ( Exception $ e ) { print '<small>file missing :' . $ path . '</small>' ; } }
Renders a story.

@param array $paths
@param array $data
Renders a story .