PHP code example of phug / renderer

1. Go to this page and download the library: Download phug/renderer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phug / renderer example snippets



$renderer = new Phug\Renderer($options);
$html = $renderer->render($pugInput);

//$html is now a string of HTML or any other markup according to the formatter you choose (XML, xHTML, etc.)