2.2.4 • Published 11 years ago

vixen v2.2.4

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

Vixen

Minimal string/DOM templating hybrid developed for use with node-webkit.

Only ~11kb and ~2.5kb minified+gzip.

Example usage

<div id="view">
  <h1>I'm {{me.name}}</h1>

  <h2>And I like</h2>
  <ul vx-for="i:like in me.likes">
    <li class="{{i | alt}}">{{like}}</li>
  </ul>

  <input value="{{message}}" placeholder="Write something…"/>
  <button onclick="{{shout}}">and try my event handling</button>
</div>
var view = vixen(document.getElementById('view'), {
  me: {
    name: 'Vixen',
    likes: [ 'Trampolines', 'Geese', 'Washing machines', 'Other foxes' ]
  },
  shout: function() {
    alert('You wrote: "'+view.message+'".');
    view.message = '';
  },
  alt: function(i) { return i%2 === 0 ? 'dark' : 'light'; }
});

See it in action.

browser build status

2.2.4

11 years ago

2.2.3

11 years ago

2.2.2

11 years ago

2.2.1

12 years ago

2.2.0

12 years ago

2.1.0

12 years ago

2.0.0

12 years ago

0.5.1

12 years ago

0.5.0

12 years ago

0.6.0

12 years ago

0.6.1

12 years ago

0.7.0

12 years ago

1.0.0

12 years ago

1.1.0

12 years ago

1.1.1

12 years ago

1.1.2

12 years ago