Skip to content

mspg/transpile-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@mspg/transpile-pug

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge

transpiles pug to html, then uses html-minifier on the result and returns it.

Installation:
npm install @mspg/transpile-pug
Usage:

First set up a mspg project.

then, in src/config.js

  const HTML = require('@mspg/pug')

  module.exports = {
    TRANSPILERS: {
      HTML,
    },
  }
src directory stylus

you should not rename the html files in the /src directory, you can just use pug in them now.

includes

You can also use the /includes/html directory to create *.pug files and include/extend them from the html files in /src.

example app

a minimal example app is in the example directory of this repository, using config.js from the root directory

example app on github.io

the example app is published to the gh-pages branch. it is hosted @ https://mspg.github.io/transpile-pug

About

pug to html transpilation for mspg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published