0.1.11 • Published 10 years ago

jstools-compile v0.1.11

Weekly downloads
1
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.10

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago