teacup-view
View class - based on Teacup, extensible via components
Last updated 6 years ago by lazurski .
GPL 3 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install teacup-view 
SYNC missed versions from official npm registry.

Teacup View

a View class - based on Teacup, extensible via components

It's a ligthweight wrapper on top of Teacup.

Install

npm install teacup-view

Use

View = require "teacup-view"

view = new View (name) ->
  @div => # Inside view use fat arrow to keep reference to teacup object
    @h1 "Hello! #{name}"
    @p  "It's nice to see you!"

html = view "Anna"

TODO: write better readme with examples.

In the mean time, see tests.

Current Tags

  • 0.2.2                                ...           latest (6 years ago)

1 Versions

  • 0.2.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (4)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |