vv
Vue template engine.
Last updated 3 years ago by rem .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vv 
SYNC missed versions from official npm registry.

vv NPM version

NPM downloads CircleCI donate

Install

yarn add vv

Usage

const vv = require('vv')

const template = vv.compile(`<ul>
  <li v-for="item in list">{{ item }}</li>
</ul>`)

template({
  list: ['foo', 'bar', 'baz']
}).then(html => {
  //=> console.log(html)
  <ul data-server-rendered="true">
    <li>foo</li>
    <li>bar</li>
    <li>baz</li>
  </ul>
})

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

vv © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

egoistian.com · GitHub @egoist · Twitter @rem_rin_rin

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

2 Versions

  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 2
Last Month 1
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |