0.0.8 • Published 7 years ago

view4pug v0.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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>
0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago