Skip to content

khalidhoffman/pug-php-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

php filter for pug

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published