backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Language.Ltml.HTML.CSS.Util

Synopsis

Convert CSS Classes to HTML Attributes

(<#>) :: ([Attributes] -> a) -> Class -> a infixl 9 Source #

Constructs HTML element with given Class

cssClass_ :: Class -> Attributes Source #

Convert CSS Class to Lucid HTML Attribute

cssClasses_ :: [Class] -> [Attributes] Source #

Convert List of CSS Classes to List of Lucid HTML Attribute Note: Lucid combines list of class_ attributes so single HTML class attribute.

toCssClasses_ :: ToCssClasses a => a -> [Attributes] Source #

Convert a to list of Attributes via ToCssClasses instance.

Wrap HTML Headers and Stylesheets

addHtmlHeader :: ToHtml title => title -> FilePath -> Html () -> Html () Source #

Adds html, head and body tags onto given html and sets title and css path

addInlineCssHeader :: String -> Css -> Html () -> Html () Source #

Adds html, head and body tags onto given html, adds title, renders and inlines given css; This is used for creating a "preview" HTML;