The webpage package

[Tags:library, mit]

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"

Properties

Versions 0.0.1, 0.0.2, 0.0.3, 0.0.3.1, 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 repository head: git clone https://github.com/athanclark/webpage.git
Uploaded Wed Mar 29 19:04:18 UTC 2017 by athanclark
Distributions LTSHaskell:0.0.5, NixOS:0.0.5, Stackage:0.0.5, Tumbleweed:0.0.5
Downloads 865 total (15 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees