teacup-view

    0.2.2 • Public • Published

    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.

    Install

    npm i teacup-view

    DownloadsWeekly Downloads

    0

    Version

    0.2.2

    License

    GPL 3

    Last publish

    Collaborators

    • lazurski