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

[ bsd3, library, web ] [ Propose Tags ] [ Report a vulnerability ]

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

[Last Documentation]

  • Shpadoinkle
    • Backend
      • Shpadoinkle.Backend.Static

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
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 isaac.shapira@platonic.systems
Category Web
Uploaded by fresheyeball at 2021-06-02T18:00:58Z
Distributions
Reverse Dependencies 3 direct, 0 indirect [details]
Downloads 980 total (21 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-0.2.0.1

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