The webpage package

[Tags:library, mit]

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>"

Properties

Versions 0.0.1, 0.0.2, 0.0.3, 0.0.3.1, 0.0.4 (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>
Stability Unknown
Source repository head: git clone https://github.com/athanclark/webpage.git
Uploaded Tue Nov 10 19:13:51 UTC 2015 by athanclark
Distributions LTSHaskell:0.0.4, NixOS:0.0.4, Stackage:0.0.4, Tumbleweed:0.0.4
Downloads 735 total (11 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees