Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khalidhoffman/pug-php-filter
php filter for pug
https://github.com/khalidhoffman/pug-php-filter
pug
Last synced: 3 months ago
JSON representation
php filter for pug
- Host: GitHub
- URL: https://github.com/khalidhoffman/pug-php-filter
- Owner: khalidhoffman
- Created: 2016-10-25T18:31:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-10T14:55:16.000Z (over 7 years ago)
- Last Synced: 2024-09-28T08:42:52.254Z (4 months ago)
- Topics: pug
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pug-php-filter
## What it does
`pug-php-filter` provides a pug php filter
```
:php
echo "hello world";
```
renders:```
```
## 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
}
});```