Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

teacup-view

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

teacup-view

View class - based on Teacup, extensible via components

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

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.

Keywords

view

FAQs

Package last updated on 25 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts