pug-php-filter

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i pug-php-filter

Weekly Downloads

26

Version

0.0.1

License

ISC

Last publish

Collaborators

  • khalidhoffman