0.0.1 • Published 10 years ago

tintin v0.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
10 years ago

#TINTIN

##Install

npm install tintin

##Usage

tintin = require 'tintin'

element = html {lang: 'en'}, (_)->
	_ "head", (_)->
    	_ "title", "HomePage"
  	_ "body", (_)->
    	_ "#header", (_)->
      		_ "h1", "Brand"
    	_ "#footer", (_)->
      		_ "p.copy-right[style=text-align:right;]", "hogehoge"

console.log element.toHTML()

or

app.engine 'tintin.coffee', require(tintin).__express()
app.set "view engine", "tintin.coffee"