crudl-control

coffeescript friendly control CRUD delegate

npm install crudl-control
2 downloads in the last week
2 downloads in the last month

CRUDL now express - a websocket CRUD delegate

lifts a crudl-model to the web

map = (person) -> name: person.name

personCrudl = crudl db.Person, map, (p) -> _.extend map(p), id: term.id

everyone.now.yourApp =

  # use direct delegate to prevent scope
  persons: personCrudl.list

  # or apply nowjs scope manually
  savePerson: (values, onSuccess) ->
    personCrudl.update.apply @, [values.id, values, onSuccess]
npm loves you