AudioDidact\GlobalFunctions::generatePug
Returns Pug (Jade) rendered HTML for a given view and options
Signature
public function generatePug(string
$view,
string
$title,
[array
$options = ,
[boolean
$prettyPrint = false]] )
Parameters
$view
—
string
- Name of Pug view to be rendered
$title
—
string
- Title of the webpage
$options
—
array
- Additional options needed to render the view
$prettyPrint
—
boolean
- If prettyPrint is false, all HTML is on a single line
Returns
- string
- Pug generated HTML
Test Coverage
Information
- Coverage: 0/26 Lines (0%)
- Tests: 0
- Passed: 0 (0%)