Skip to content

josudoey/view4pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view4pug

Installation

$ npm install --save view4pug

Example

var view = require('view4pug')();
// pug src
// https://github.com/josudoey/view4pug/blob/master/example.pug
console.log(view('view4pug/example'));
console.log(view('view4pug/example', {
  youAreUsingPug: true
}));

// Output:
// <!DOCTYPE html><html lang="en"><head><title></title><script type="text/javascript">if (foo) bar(1 + 5)</script></head><body><h1>Pug - node template engine</h1><div class="col" id="container"><p>Get on it!</p><p>Pug is a terse and simple templating language with a
// strong focus on performance and powerful features.</p></div></body></html>
// <!DOCTYPE html><html lang="en"><head><title></title><script type="text/javascript">if (foo) bar(1 + 5)</script></head><body><h1>Pug - node template engine</h1><div class="col" id="container"><p>You are amazing</p><p>Pug is a terse and simple templating language with a
// strong focus on performance and powerful features.</p></div></body></html>

About

html render for pug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published