npm.io
0.0.1 • Published 9 years ago

pug-php-filter

Licence
ISC
Version
0.0.1
Deps
0
Vulns
0
Weekly
0
Stars
5

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
    }
});

Keywords