src/Theme.php
public function render($custom, $data = array(), $template = null)
    {
        if ($custom != null) {
            return $this->view->make($custom, $data)->render();
        }

        $template = $this->theme.'/'.$template;

        if ($this->view->exists($this->custom . '/' . $template)) {
            return $this->view->make($this->custom . '/' . $template, $data)->render();
        }

        return $this->view->make('styde.html::'.$template, $data)->render();
    }
public function render($custom, $data = array(), $template = null)
    {
        if ($custom != null) {
            return $this->view->make($custom, $data)->render();
        }

        $template = $this->theme.'/'.$template;

        if ($this->view->exists($this->custom . '/' . $template)) {
            return $this->view->make($this->custom . '/' . $template, $data)->render();
        }

        return $this->view->make('styde.html::'.$template, $data)->render();
    }
public function render ( $ custom , $ data = array ( ) , $ template = null ) { if ( $ custom != null ) { return $ this -> view -> make ( $ custom , $ data ) -> render ( ) ; } $ template = $ this -> theme . '/' . $ template ; if ( $ this -> view -> exists ( $ this -> custom . '/' . $ template ) ) { return $ this -> view -> make ( $ this -> custom . '/' . $ template , $ data ) -> render ( ) ; } return $ this -> view -> make ( 'styde.html::' . $ template , $ data ) -> render ( ) ; }
Renders a custom template or one of the default templates.

The default template could be published (into resources/views/themes/)
or be located inside the components directory (vendor/styde/html/themes/)

@param string $custom
@param array $data
@param null $template
@return string
Renders a custom template or one of the default templates .