Pug
Parser for PostHTML
Install
npm i -D posthtml-pug
Usage
const file =
Options
See the Pug API for a full description of the options that can be passed. By default the following options are set:
Name | Default |
---|---|
pretty |
true |
locals |
{} |
Example
index.pug
doctype html
html
head
meta(charset="utf8")
title Pug Parser
body
h1#title Pug for PostHTML
p= greeting
const file = const locals = greeting: 'Hello!'
index.html
Pug Parser Pug for PostHTML Hello!
Maintainer
Michael Ciniawsky |
Contributors
Jeff Escalante |
Timothy Gu |