Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d9b80e5d66
Fetching contributors…

Cannot retrieve contributors at this time

98 lines (77 sloc) 1.978 kB

Sparkup

Install this by putting sparkup in your $PATH somewhere. Requires Python 2.5+ (comes preinstalled with Mac OS X).

Usage

You can write HTML in a CSS-like syntax, and have sparkup handle the expansion to full code. To use sparkup in the command line, simply do echo "<your code here>" | sparkup.

Sparkup also offers intregration into common text editors (vim included; Textmate, Aptana and more to come soon).

Examples

div

div#header

div.align-left#header

div#header + div#footer

#menu > ul

    #menu > h3 + ul

      #header > h1{Welcome to our site}

      Welcome to our site

      a[href=index.html]{Home} Home

      ul > li*3

      ul > li.item-$*3

      ul > li.item-$*3 > strong

      table > tr2 > td.name + td3

      #header > ul > li < p{Footer} <!-- The < symbol goes back up the parent; i.e., the opposite of >. -->

      Footer

      Jump to Line
      Something went wrong with that request. Please try again.