Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
coffeescript friendly control CRUD delegate
CoffeeScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
src
.gitignore
Cakefile
LICENSE
README.md
package.json

README.md

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.all

  # or apply nowjs scope manually
  savePerson: (values, onSuccess) ->
    personCrudl.update.apply @, [values.id, values, onSuccess]
Something went wrong with that request. Please try again.