webpage: Organized and simple web page scaffold for blaze and lucid

[ library, mit, unclassified ] [ Propose Tags ]

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
Versions [faq] 0.0.1, 0.0.2, 0.0.3,, 0.0.4, 0.0.5 (info)
Dependencies base (==4.*), blaze-html, data-default, lucid (>=2.5), text [details]
License MIT
Author Athan Clark <athan.clark@gmail.com>
Maintainer Athan Clark <athan.clark@gmail.com>
Source repo head: git clone https://github.com/athanclark/webpage.git
Uploaded by athanclark at Wed Mar 29 19:04:18 UTC 2017
Distributions NixOS:0.0.5
Downloads 2015 total (29 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees