simple-css

simple binding of css and html

Latest on Hackage:0.0.4

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Anton Kholomiov
Maintained by <[email protected]>

Library binds css and html. It takes notion of html for content, css for styling to extreme. There are functions to build 'styling tree' and html elements can be placed only in the lists of the tree. Html elements can be groupped with div, span or a tags and styled with subset of css. Result of the programm is string of css code and list of html elements. Module SimpleCss contains core functions of the library and SimpleCss.Tricks translates some css tricks i've found in the web. See 'example/Main.hs' to get started