├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bower.json ├── component.json ├── dist ├── rivets.bundled.min.js ├── rivets.js └── rivets.min.js ├── doc.sh ├── docs ├── CNAME ├── _layout.jade ├── css │ ├── bootstrap.css │ ├── responsive.styl │ ├── screen.styl │ ├── syntax.css │ └── type.css ├── docs │ ├── guide │ │ ├── _data.json │ │ ├── _sections │ │ │ ├── adapters.md │ │ │ ├── adapters │ │ │ │ ├── creating.md │ │ │ │ └── default.md │ │ │ ├── binders.md │ │ │ ├── binders │ │ │ │ ├── api.md │ │ │ │ ├── one-way.md │ │ │ │ └── two-way.md │ │ │ ├── components.md │ │ │ ├── computed-properties.md │ │ │ ├── formatters.md │ │ │ ├── formatters │ │ │ │ ├── arguments.md │ │ │ │ ├── one-way.md │ │ │ │ └── two-way.md │ │ │ ├── functions-call.md │ │ │ ├── index.md │ │ │ ├── install.md │ │ │ ├── iteration │ │ │ │ ├── index.md │ │ │ │ └── iteration.md │ │ │ └── usage │ │ │ │ ├── binding.md │ │ │ │ ├── configuring.md │ │ │ │ └── templates.md │ │ └── index.jade │ └── reference │ │ ├── _binders │ │ ├── [attribute].md │ │ ├── checked.md │ │ ├── class-[classname].md │ │ ├── disabled.md │ │ ├── each-[item].md │ │ ├── enabled.md │ │ ├── hide.md │ │ ├── html.md │ │ ├── if.md │ │ ├── on-[event].md │ │ ├── show.md │ │ ├── text.md │ │ ├── unchecked.md │ │ ├── unless.md │ │ └── value.md │ │ ├── _data.json │ │ └── index.jade ├── fonts │ ├── entypo-social │ │ ├── entypo-social.eot │ │ ├── entypo-social.svg │ │ ├── entypo-social.ttf │ │ └── entypo-social.woff │ ├── entypo │ │ ├── entypo.eot │ │ ├── entypo.svg │ │ ├── entypo.ttf │ │ └── entypo.woff │ └── proxima-nova │ │ ├── ProximaNova-Black-webfont.eot │ │ ├── ProximaNova-Black-webfont.svg │ │ ├── ProximaNova-Black-webfont.ttf │ │ ├── ProximaNova-Black-webfont.woff │ │ ├── ProximaNova-BlackIt-webfont.eot │ │ ├── ProximaNova-BlackIt-webfont.svg │ │ ├── ProximaNova-BlackIt-webfont.ttf │ │ ├── ProximaNova-BlackIt-webfont.woff │ │ ├── ProximaNova-Bold-webfont.eot │ │ ├── ProximaNova-Bold-webfont.svg │ │ ├── ProximaNova-Bold-webfont.ttf │ │ ├── ProximaNova-Bold-webfont.woff │ │ ├── ProximaNova-BoldIt-webfont.eot │ │ ├── ProximaNova-BoldIt-webfont.svg │ │ ├── ProximaNova-BoldIt-webfont.ttf │ │ ├── ProximaNova-BoldIt-webfont.woff │ │ ├── ProximaNova-Light-webfont.eot │ │ ├── ProximaNova-Light-webfont.svg │ │ ├── ProximaNova-Light-webfont.ttf │ │ ├── ProximaNova-Light-webfont.woff │ │ ├── ProximaNova-LightIt-webfont.eot │ │ ├── ProximaNova-LightIt-webfont.svg │ │ ├── ProximaNova-LightIt-webfont.ttf │ │ ├── ProximaNova-LightIt-webfont.woff │ │ ├── ProximaNova-Reg-webfont.eot │ │ ├── ProximaNova-Reg-webfont.svg │ │ ├── ProximaNova-Reg-webfont.ttf │ │ ├── ProximaNova-Reg-webfont.woff │ │ ├── ProximaNova-RegIt-webfont.eot │ │ ├── ProximaNova-RegIt-webfont.svg │ │ ├── ProximaNova-RegIt-webfont.ttf │ │ ├── ProximaNova-RegIt-webfont.woff │ │ ├── ProximaNova-Sbold-webfont.eot │ │ ├── ProximaNova-Sbold-webfont.svg │ │ ├── ProximaNova-Sbold-webfont.ttf │ │ ├── ProximaNova-Sbold-webfont.woff │ │ ├── ProximaNova-SboldIt-webfont.eot │ │ ├── ProximaNova-SboldIt-webfont.svg │ │ ├── ProximaNova-SboldIt-webfont.ttf │ │ ├── ProximaNova-SboldIt-webfont.woff │ │ ├── ProximaNova-Thin-webfont.eot │ │ ├── ProximaNova-Thin-webfont.svg │ │ ├── ProximaNova-Thin-webfont.ttf │ │ ├── ProximaNova-Thin-webfont.woff │ │ ├── ProximaNova-ThinIt-webfont.eot │ │ ├── ProximaNova-ThinIt-webfont.svg │ │ ├── ProximaNova-ThinIt-webfont.ttf │ │ ├── ProximaNova-ThinIt-webfont.woff │ │ ├── ProximaNova-Xbold-webfont.eot │ │ ├── ProximaNova-Xbold-webfont.svg │ │ ├── ProximaNova-Xbold-webfont.ttf │ │ ├── ProximaNova-Xbold-webfont.woff │ │ ├── ProximaNova-XboldIt-webfont.eot │ │ ├── ProximaNova-XboldIt-webfont.svg │ │ ├── ProximaNova-XboldIt-webfont.ttf │ │ └── ProximaNova-XboldIt-webfont.woff ├── img │ ├── attendease.png │ ├── dell.png │ ├── disco.png │ ├── kin.png │ ├── mikeric.jpg │ └── vs.png ├── index.jade └── js │ ├── app.js │ ├── bootstrap.min.js │ ├── highlight.js │ └── jquery.js ├── gulpfile.js ├── package.json ├── spec ├── lib │ └── mock.data.js ├── rivets │ ├── binders.js │ ├── binding.js │ ├── component_binding.js │ ├── formatters.js │ ├── functional.js │ ├── routines.js │ └── text_template_parser.js └── runner.html └── src ├── adapter.coffee ├── binders.coffee ├── bindings.coffee ├── export.coffee ├── formatters.coffee ├── parsers.coffee ├── rivets.coffee ├── util.coffee └── view.coffee /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.swp 3 | node_modules/**/* 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 0.9.6 2 | 3 | **No changes (version bump due to error in publishing 0.9.5)** 4 | 5 | # 0.9.5 6 | 7 | ### Changes 8 | 9 | - Use global object `$` (jQuery or jQuery alternative) if available, fixing [#646](https://github.com/mikeric/rivets/issues/646) 10 | 11 | # 0.9.4 12 | 13 | ### Changes 14 | 15 | - Updated sightglass to `v0.2.6`, fixing [#572](https://github.com/mikeric/rivets/issues/572) 16 | 17 | # 0.9.2 18 | 19 | ### Changes 20 | 21 | - Fix issue when resetting a model [#644](https://github.com/mikeric/rivets/issues/644) 22 | - Fix publish function in two-way formatters [#649](https://github.com/mikeric/rivets/issues/649) 23 | - Fix array binding [#650](https://github.com/mikeric/rivets/issues/650) 24 | - Fix observers on prototype functions [#572](https://github.com/mikeric/rivets/issues/572) 25 | 26 | # 0.9.1 27 | 28 | ### Changes 29 | 30 | - Fix bug in expression with multiple strings [#620](https://github.com/mikeric/rivets/issues/620) 31 | 32 | # 0.9.0 33 | 34 | ### Changes 35 | 36 | - Fix binders which received 0 instead of undefined when HTML attributes were empty [#567](https://github.com/mikeric/rivets/issues/567) 37 | - Now functions are not executed by Rivets in expressions. To call the function you need to use the `call` formatter. See documentation [here](http://rivetsjs.com/docs/guide/#functions-call) [#571](https://github.com/mikeric/rivets/issues/571) 38 | - Support for nested rv-each with an index for each iteration. Index names can be configured, see documentation [here](http://rivetsjs.com/docs/guide/#usage-configuring) [#551](https://github.com/mikeric/rivets/issues/551) 39 | - Support for pipes in quoted arguments [#432](https://github.com/mikeric/rivets/issues/432) 40 | - Support for constant string in component HTML attributes [#478](https://github.com/mikeric/rivets/issues/478) 41 | - Fix rebind bug when a templated used nested `rv-if` binders [#611](https://github.com/mikeric/rivets/issues/611) 42 | 43 | ### Upgrading from 0.8 44 | - Since 0.9 Rivets will not execute functions by default. This will allow passing arguments to function with the `call` formatter. 45 | 46 | - Calling function in 0.8 47 | ``` 48 | { item.myFunction } 49 | ``` 50 | - Calling function in 0.9 51 | ``` 52 | { item.myFunction | call} 53 | ``` 54 | - Calling function in 0.9 with arguments 55 | ``` 56 | { item.myFunction | call myArgument 'argument as string'} 57 | ``` 58 | 59 | - You can force function executions to have your application work in `0.9` without using the `call` formatter. This is done with the configuration 60 | ``` 61 | rivets.configure({ 62 | // Since rivets 0.9 functions are not automatically executed in expressions. If you need backward compatibilty, set this parameter to true 63 | executeFunctions: true 64 | }); 65 | ``` 66 | 67 | - Using multiple indexes in nested `rv-each`. Since `0.9` rivets allows to have a specific index variable for each iteration. 68 | ``` 69 |