Home

Awesome

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()" />