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

[ bsd3, library, web ] [ Propose Tags ]

Shpadoinkle's static backend, 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-05-22T19:05:20Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 870 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for Shpadoinkle-backend-static-0.1.0.1

[back to package description]

Shpadoinkle Backend Static

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