The webpage package

[maintain]
Warnings:

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

Versions0.0.1, 0.0.2, 0.0.2, 0.0.3, 0.0.3.1, 0.0.4
Dependenciesbase (==4.*), blaze-html, data-default, hastache, lucid (>=2.5), text [details]
LicenseMIT
AuthorAthan Clark <athan.clark@gmail.com>
MaintainerAthan Clark <athan.clark@gmail.com>
Source repositoryhead: git clone https://github.com/athanclark/webpage.git
UploadedFri Dec 26 21:31:39 UTC 2014 by athanclark

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees