Organized and simple web page scaffold for blaze and lucid

Version on this page:0.0.5
LTS Haskell 11.22:0.0.5
Stackage Nightly 2018-03-12:0.0.5
Latest on Hackage:0.0.5

See all snapshots webpage appears in

MIT licensed and maintained by Athan Clark

Module documentation for 0.0.5

This is a general organization scheme for web pages, implemented for Lucid, and adapted for Blaze-html.

 import Web.Page.Lucid

 λ> renderText $ template def "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 = def

title = "foo" > , bodyScripts = script_ [src_ "jquery.js"] "" > > > λ> template page "some content" > > ↪ "HTMLhtmlheadtitlefoo/title > /headbodysome content<script > src="jquery.js">/script/body/html"

Depends on 5 packages:
Used by 1 package:
comments powered byDisqus