Try

Type code in the left-hand panel to test Pug.php render.

Options
allowMixedIndent
allowMixinOverride
classAttribute
expressionLanguage
prettyprint
pugjs
restrictedScope
singleQuote
mode
doctype html html(lang="en") head title= pageTitle script(type='text/javascript'). if (foo) { bar(1 + 5) } body h1= pageTitle #container.col if youAreUsingJade p You are amazing else p Get on it! p. Pug.php is PHP port Pug (JS) the node template engine (previously named Jade).
array( 'pageTitle' => 'Try Pug.php and never recode HTML again', 'youAreUsingJade' => true, )
<!DOCTYPE html> <html lang="en"> <head> <title>Try Pug.php and never recode HTML again</title> <script type="text/javascript"> if (foo) { bar(1 + 5) } </script> </head> <body> <h1>Try Pug.php and never recode HTML again</h1> <div id="container" class="col"> <p>You are amazing</p> <p> Pug.php is PHP port of Pug (JS) the node template engine (previously named Jade). </p> </div> </body> </html>
Preview