markup

Abstraction for HTML-embedded content

Version on this page:3.1.0@rev:1
LTS Haskell 11.22:4.0.4
Stackage Nightly 2018-03-12:4.0.4
Latest on Hackage:4.2.0

See all snapshots markup appears in

MIT licensed and maintained by Athan Clark
This version can be pinned in stack with:markup-3.1.0@sha256:afb6565079dbae62dda5e69e61c9ef1d0617558ba6792c3e93f3788f8d05a3ab,2113

Module documentation for 3.1.0

This library tries to simplify deployment of common HTML constructs, for different HTML engines.

Deployment, from this library's perspective, means how something can be rendered to markup, yet still achieve the same "result" to the end user (namely the DOM). For instance, we could use a link tag to reference external Css, or we might insert the Css code inline a style tag.

We use simple tags to infer the deployment mechanism for a context of markup. The three deployment mechanisms provided include

  • inline - the asset inserted between markup tags

  • local - assets on the current server

  • remote - assets referenced with a complete URI