1.0.1 • Published 9 years ago

teacup-databind v1.0.1

Weekly downloads
2
License
Unlicense (http:/...
Repository
-
Last release
9 years ago

Teacup Knockout helper

A Knockout helper plugin for Teacup.

teacup = require 'teacup'
teacup_databind = require 'teacup-databind'
teacup.use teacup_databind()

console.log teacup.render ->
  {input} = teacup

  input '.stylish',
    bind:
      value: 'name'
      disable: 'hasNoName()'

# Outputs <input class="stylish" data-bind="value: name, disable: hasNoName()" />
1.0.1

9 years ago

1.0.0

9 years ago