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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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]

Properties

Versions 0.0.0.1, 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.13), compactable (>=0.1.2 && <0.2), Shpadoinkle (<0.1), 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-09T20:35:10Z

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for Shpadoinkle-backend-static-0.0.0.1

[back to package description]

Shpadoinkle Backend Static

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