0.1.11 • Published 9 years ago

jstools-compile v0.1.11

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

jEngine: $compile wercker status

Bower version npm version Build Status

Installation

npm install jstools-compile --save

or

bower install jstools-compile --save

Usage

var data = {
  foo: 'bar',
  crash: {
    test: 'dummy'
  },
  list: ['foo', 'bar', 'foobar'],
  map: {
    hi: 'all',
    bye: 'nobody'
  },
  template: 'sample',
  label: {
    cancel: 'cancel'
  }
};

$compile('$if{ foo === "bar" }gogogo{:}whoops{/}')(data)
// returns 'gogogo'

compile('$each{ item, key in map }[${foo}:${key}:${item}]{/}')(data);
// returns '[bar:hi:all][bar:bye:nobody]'
0.1.11

9 years ago

0.1.10

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago