pug-php-filter
v0.0.1
Published
A php filter for pug
Downloads
44
Readme
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
}
});