To install:
$ npm i @ch1c0t/pugify
A usage example for some.pug
:
p Hello, #{name}!
template = require './some.pug'
main = document.getElementById 'main'
html = template name: 'Alice'
main.innerHTML = html
browserify -t @ch1c0t/pugify -t coffeeify --extension='.coffee' entry.coffee > output.js