src/Primer/Renderable/Pattern.php
public function render($showChrome = true)
    {
        $html = $this->template->render($this->data);

        // Tidy the HTML
        $parser = new Parser();
        $html = $parser->indent($html);

        if ($showChrome) {
            return View::render('pattern', [
                'title' => $this->title,
                'id' => $this->id,
                'html' => $html,
                'template' => $this->templateRaw,
                'copy' => $this->copy,
                'data' => json_encode($this->data, JSON_PRETTY_PRINT),
            ]);
        } else {
            return $html;
        }
    }
public function render($showChrome = true)
    {
        $html = $this->template->render($this->data);

        // Tidy the HTML
        $parser = new Parser();
        $html = $parser->indent($html);

        if ($showChrome) {
            return View::render('pattern', [
                'title' => $this->title,
                'id' => $this->id,
                'html' => $html,
                'template' => $this->templateRaw,
                'copy' => $this->copy,
                'data' => json_encode($this->data, JSON_PRETTY_PRINT),
            ]);
        } else {
            return $html;
        }
    }
public function render ( $ showChrome = true ) { $ html = $ this -> template -> render ( $ this -> data ) ; // Tidy the HTML $ parser = new Parser ( ) ; $ html = $ parser -> indent ( $ html ) ; if ( $ showChrome ) { return View :: render ( 'pattern' , [ 'title' => $ this -> title , 'id' => $ this -> id , 'html' => $ html , 'template' => $ this -> templateRaw , 'copy' => $ this -> copy , 'data' => json_encode ( $ this -> data , JSON_PRETTY_PRINT ) , ] ) ; } else { return $ html ; } }
Renders the pattern

@param  boolean $showChrome Whether or not the item should render descriptive chrome
@return String              HTML text
Renders the pattern