teacup-databind

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i teacup-databind

Weekly Downloads

0

Version

1.0.1

License

Unlicense (http://unlicense.org/)

Last publish

Collaborators

  • shimaore