homepage: ''
changelog-type: markdown
hash: 325b87fd789882fc367f77a341ca6189c06da30761f1487876ab89bf516a0b2e
test-bench-deps: {}
maintainer: fresheyeball@protonmail.com
synopsis: A backend for rendering Shpadoinkle as Text.
changelog: ''
basic-deps:
  base: '>=4.12.0 && <4.13'
  text: '>=1.2.3 && <1.3'
  Shpadoinkle: <0.1
  compactable: '>=0.1.2 && <0.2'
all-versions:
- 0.0.0.1
author: Isaac Shapira
latest: 0.0.0.1
description-type: markdown
description: |
  # Shpadoinkle Backend Static


  [![Goldwater](https://gitlab.com/fresheyeball/Shpadoinkle/badges/master/pipeline.svg)](https://gitlab.com/fresheyeball/Shpadoinkle-backend-static)
  [![Hackage](https://img.shields.io/hackage/v/Shpadoinkle-backend-static.svg)](https://hackage.haskell.org/package/Shpadoinkle-backend-static)
  [![Hackage Deps](https://img.shields.io/hackage-deps/v/Shpadoinkle-backend-static.svg)](http://packdeps.haskellers.com/reverse/Shpadoinkle-backend-static)
  [![Hackage CI](https://matrix.hackage.haskell.org/api/v2/packages/Shpadoinkle-backend-static/badge)](https://matrix.hackage.haskell.org/#/package/Shpadoinkle-backend-static)

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

  For example

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

  main = putStrLn $ unpack $ renderStatic page
  ```

  will output

  ```html
  <div class="header"><h1>Trappers!</h1></div>
  ```
license-name: BSD-3-Clause

Update from Hackage at 2020-05-09T20:42:07Z
Update from Hackage at 2020-05-09T20:42:07Z
