lucid-xstatic-0.1.1: Lucid helper for XStatic
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lucid.XStatic

Description

Add XStaticFile to Html document.

indexHtml :: Html ()
indexHtml = do
    doctypehtml_ do
        head_ do
            meta_ [charset_ "utf-8"]
            meta_ [name_ "viewport", content_ "width=device-width, initial-scale=1.0"]
            xstaticScripts xfiles
  where
    xfiles = XStatic.htmx : XStatic.xterm
Synopsis

Documentation

xstaticScripts :: [XStaticFile] -> Html () Source #

Adds script_ and link_ for javascript and css files.