0.2.2 • Published 10 years ago

teacup-view v0.2.2

Weekly downloads
2
License
GPL 3
Repository
github
Last release
10 years ago

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.