Deprecated generic-lucid-scaffold General-purpose web page scaffold for Lucid.
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.
This is a general organization scheme for web pages, implemented for Lucid.
It's as easy as 1-2-3:
λ> renderText $ template mempty "some content"
↪ "<!DOCTYPE HTML><html><head><title></title><link href
rel="icon"></head><body>some content</body></html>"
overload the particular areas with record syntax and stuff:
λ> let page = WebPage
"foo"
mempty
mempty
mempty
mempty
mempty
mempty
(script_ [src_ "jquery.js"] "")
λ> template page "some content"
↪ "<!DOCTYPE HTML><html><head><title>foo</title><link href
rel=\"icon\"></head><body>some content<script
src=\"jquery.js\"></script></body></html>"
Stackage is a service provided by the
Haskell Foundation
│ Originally developed by
FP Complete