webpage: Organized and simple web page scaffold for blaze and lucid
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- No 'category' field.
- Exposed modules use unallocated top-level names: Web
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><link href rel=\"icon\"></head><body>some content<script src=\"jquery.js\"></script></body></html>"
Properties
Versions | 0.0.1, 0.0.2, 0.0.2, 0.0.3, 0.0.3.1, 0.0.4, 0.0.5, 0.0.5.1 |
---|---|
Change log | None available |
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> |
Source repo | head: git clone https://github.com/athanclark/webpage.git |
Uploaded | by athanclark at 2014-12-26T21:31:39Z |
Modules
[Index]
Downloads
- webpage-0.0.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees