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" > > ↪ "<!DOCTYPE HTML><html><head><title>foo</title> > </head><body>some content<script > src="jquery.js"></script></body></html>" .
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.0.5-bp150.2.3 info | GA Release | 2018-08-01 | 15 |
|
|
0.0.5-bp150.2.5 info | GA Release | 2018-07-31 | 15 |
|
|
0.0.5-bp150.2.8 info | GA Release | 2018-07-30 | 15 |
|
|