ch1c0t / pugify

A minimal Browserify transform for Pug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A minimal Browserify transform for Pug


Languages

Language:CoffeeScript 100.0%