The generic-lucid-scaffold package

[ Tags: deprecated, library, mit, unclassified ] [ Propose Tags ]
Deprecated. in favor of webpage

This is a general organization scheme for web pages, implemented for Lucid.

It's as easy as 1-2-3:

 λ> renderText $ template mempty "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
Dependencies base (==4.*), 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/generic-lucid-scaffold.git
Uploaded Tue Dec 9 22:25:55 UTC 2014 by athanclark
Distributions NixOS:0.0.1
Downloads 313 total (29 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
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