vievv

1.0.6 • Public • Published

Vievv

Install

npm i vievv

Design

It's similar to EJS v1, but with a little twist to my needs, specially the resolver for including other views.

<div>
    Hello, I'm <%= name %>.
</div>

Methods

Compile

var view     = require("vievv");
var template = view.compile(filename[, options ]);

console.log(template(scope));

Render

var view = require("vievv");

console.log(view.render(data[, options ]));

/vievv/

    Package Sidebar

    Install

    npm i vievv

    Weekly Downloads

    84

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    11.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • dresende