scraps

A Space based HTML template language.

Scraps

Scraps is a Space based HTML template language.

Scraps is currently in beta and the API is still changing.

Try it now

Try it now at http://scraps.nudgepad.com

Examples

A normal html div written in Scraps looks like this:

div
 content Hello world
 style
  left 10px
  top 10px

This would get turned into html that looks like this:

<div style="left: 10px; top: 10px">Hello world</div>

Scraps can be any html element:

textarea
 placeholder Enter some text
 style
  left 10px
  top 40px

Scraps can use all normal html attributes such as "name" or "value":

input
 type text
 name age
 placeholder Age
 value 18
 style
  left 10px
  top 40px
ul
 li
  content One
 li
  content Two
divs
 content Hello world
 onclick alert('Hello world'!)