Skip to content

Mikrosekcja/teacup-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

View class based on Teacup extensible via components

Resources

Stars

Watchers

Forks

Packages

No packages published