teacup-databind
v1.0.1
Published
Teacup plugin to support Knockout(.js)
Downloads
9
Readme
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()" />