stitch-0.1.0.0: lightweight CSS DSL

Safe HaskellNone
LanguageHaskell2010

Stitch.Render

Synopsis

Documentation

renderCSS :: CSS -> Text Source

Convert an abstract CSS document to a real CSS document.

renderCSSWith :: BlockPrinter -> CSS -> Text Source

Convert an abstract CSS document to a real CSS document using a specific printer. A simple printer called basic is included, as well as a compressing printer called compressed.

basic :: BlockPrinter Source

Outputs a basic human-readable version of the CSS document. Line breaks are added between blocks, and properties are spaced nicely.

compressed :: BlockPrinter Source

A minimal printer that aims for tiny output CSS. All spaces are removed.