Shpadoinkle-backend-static: A backend for rendering Shpadoinkle as Text.

[ bsd3, library, web ] [ Propose Tags ]

Shpadoinkle's static backend, which renders Html as Text. Event listeners are ignored. This is useful when rendering on the server or for static site generation.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.0.1, 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.2.0.1
Change log CHANGELOG.md
Dependencies base (>=4.12.0 && <4.16), compactable (>=0.1.2 && <0.2), Shpadoinkle, text (>=1.2.3 && <1.3) [details]
License BSD-3-Clause
Author Isaac Shapira
Maintainer fresheyeball@protonmail.com
Category Web
Uploaded by fresheyeball at 2020-10-07T15:52:53Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 968 total (22 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-10-07 [all 1 reports]

Readme for Shpadoinkle-backend-static-0.1.0.2

[back to package description]

Shpadoinkle Backend Static

Goldwater Haddock BSD-3 built with nix Hackage Hackage Deps Hackage CI

This module provides a static rendering backend that translates Shpadoinkle Html into Text.

For example:

page :: Html' a
page = h "div" [ ("class", PText "header" ) ]
  [ h "h1" [] [ text "Trappers!" ] ]

main = putStrLn $ unpack $ renderStatic page

will output:

<div class="header"><h1>Trappers!</h1></div>