webpage

Organized and simple web page scaffold for blaze and lucid

Version on this page:0.0.3.1
LTS Haskell 8.5:0.0.4
Stackage Nightly 2017-03-25:0.0.4
Latest on Hackage:0.0.4
MIT licensed and maintained by Athan Clark

Module documentation for 0.0.3.1

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>"
Used by 1 package:
comments powered byDisqus