Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dresende/vievv

Node v6 template based on ejs
https://github.com/dresende/vievv

ejs engine nodejs template

Last synced: 25 days ago
JSON representation

Node v6 template based on ejs

Awesome Lists containing this project

README

        

## Vievv

### Install

```sh
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.

```html


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

```

### 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 ]));
```