hamlet.coffee / 0.6.0-pre.1 last updated 9 months ago created on May 8th 2014

Install

npm install --save hamlet.coffee

Clone

git clone git@github.com:dr-coffee-labs/hamlet.git

dependencies

main hamlet-compiler 0.6.0-pre.11 Unknown
hamlet-runtime 0.6.0-pre.21 Unknown
o_0 0.2.0 MIT

maintainers

strd6

versions

0.6.0-pre.1 9 months ago strd6
0.6.0-pre.0 9 months ago strd6
0 Downloads yesterday.

readme

Hamlet

Truly amazing templating!

Examples

Hello World

%button(click=@hello) Say Hello!
hello: ->
  alert "Hello World!"

Simple HTML

%h1 Welcome to the world of Tomorrow!
%p Where all of your wildest dreams will come true!

Corresponding Bindings

1
2
3
4
5
6
7
8
%input(type="text" value=@value)
%select(value=@value)
  - each [0..@max], (option) ->
    %option(value=option)= option
%hr
%input(type="range" value=@value min="1" max=@max)
%hr
%progress(value=@value max=@max)
max: 10
value: Observable 5
Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.