pug js
Pug is a template engine for Node and for the browser.
It compiles to HTML and has a simplified syntax, which
can make you more productive and your code more readable.
Pug makes it easy both to write reusable HTML, as well as
to render data pulled from a database or API.
3.63
8
The general rendering process of Pug is simple. pug.compile() will compile the Pug source code into a JavaScript function that takes a data object (called “locals”) as an argument. Call that resultant function with your data, and voilà!, it will return a string of HTML rendered with your data.
Thank you!
8
0
4.71
7
html pre proccessor
Thank you!
7
0
0
3
$ npm install pug --save
Thank you!
3
0
Are there any code examples left?
New code examples in category Javascript