A quick todoMVC example built with Meteor-Reactive-Coffee.
-
We don't even need html/templates
-
Populate the Meteor.Collection data into
rx.array
orrx.cell
window.tasks = rx.meteor.find TaskDB, {}, {sort:{created:-1}}
window.taskLatest = rx.meteor.findOne TaskDB, {}, {sort:{created:-1}}
- Data bind is as simple as plain reactive-coffee
ul {id: 'todo-list'}, tasks.map (task) ->
# ...
span task.title
# ...
see client/reactive-coffee-demo.coffee
for details.