UNPKG

pug-php-filter

Version:
32 lines (22 loc) 370 B
# pug-php-filter ## What it does `pug-php-filter` provides a pug php filter ``` :php echo "hello world"; ``` renders: ``` <?php echo "hello world"; ?> ``` ## How to use Here's an example: ``` var pug = require('pug'), pugPHPFilter = require('pug-php-filter'); pug.renderFile('path/to/pug/file', { filters: { php: pugPHPFilter } }); ```