crudl-control
coffeescript friendly control CRUD delegate
Last updated 8 years ago by dgf .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install crudl-control 
SYNC missed versions from official npm registry.

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]

Current Tags

  • 0.1.0                                ...           latest (8 years ago)

2 Versions

  • 0.1.0                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (1)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |