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]


[Last Documentation]

  • Shpadoinkle
    • Backend
      • Shpadoinkle.Backend.Static


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,
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
Category Web
Uploaded by fresheyeball at 2021-06-02T18:00:58Z
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 907 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-06-02 [all 2 reports]

Readme for Shpadoinkle-backend-static-

[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>