webpage: Organized and simple web page scaffold for blaze and lucid
This version is deprecated.
This is a general organization scheme for web pages, implemented for Lucid, and adapted for Blaze-html.
It's as easy as 1-2-3:
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 = WebPage "foo" mempty mempty mempty mempty mempty mempty (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>"
Downloads
- webpage-0.0.3.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.0.1, 0.0.2, 0.0.3, 0.0.3.1, 0.0.4, 0.0.5, 0.0.5.1 (info) |
---|---|
Dependencies | base (>=4 && <5), blaze-html, data-default, hastache, lucid (>=2.5), text [details] |
License | MIT |
Author | Athan Clark <athan.clark@gmail.com> |
Maintainer | Athan Clark <athan.clark@gmail.com> |
Revised | Revision 1 made by athanclark at 2015-05-13T00:17:59Z |
Category | Web |
Source repo | head: git clone https://github.com/athanclark/webpage.git |
Uploaded | by athanclark at 2015-04-15T20:24:54Z |
Distributions | LTSHaskell:0.0.5.1, NixOS:0.0.5.1, Stackage:0.0.5.1 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 4657 total (2 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-04-18 [all 1 reports] |