smartpug

handle pug easily and mesh it with data

Usage no npm install needed!

<script type="module">
  import smartpug from 'https://cdn.skypack.dev/smartpug';
</script>

README

smartpug

handle pug easily and mesh it with data

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Usage

pug (previously known as jade, renamed to pug due to trademark issues) allows easy server side html creation

testSmartpug = new smartpug.Smartpug({
    filePath: './test/test.pug'
})
let resultHtml = testSmartpug.getHtmlForData({testValue: 'Hello'})
console.log(resultHtml) // will lof the resulting html string

npm