Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dresende/vievv
- Owner: dresende
- Created: 2016-02-26T18:57:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T14:41:56.000Z (about 2 years ago)
- Last Synced: 2024-09-29T07:22:23.027Z (about 1 month ago)
- Topics: ejs, engine, nodejs, template
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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 ]));
```