@hackage Shpadoinkle-backend-static0.2.0.1

A backend for rendering Shpadoinkle as Text.

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>