Shpadoinkle-backend-static 0.0.0.1 → 0.1.0.0
raw patch · 3 files changed
+11/−6 lines, 3 filesdep ~Shpadoinkledep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: Shpadoinkle, base
API changes (from Hackage documentation)
Files
- README.md +3/−2
- Shpadoinkle-backend-static.cabal +4/−4
- Shpadoinkle/Backend/Static.hs +4/−0
README.md view
@@ -1,7 +1,8 @@ # Shpadoinkle Backend Static --[](https://gitlab.com/fresheyeball/Shpadoinkle-backend-static)+[](https://gitlab.com/fresheyeball/Shpadoinkle)+[](https://opensource.org/licenses/BSD-3-Clause)+[](https://builtwithnix.org) [](https://hackage.haskell.org/package/Shpadoinkle-backend-static) [](http://packdeps.haskellers.com/reverse/Shpadoinkle-backend-static) [](https://matrix.hackage.haskell.org/#/package/Shpadoinkle-backend-static)
Shpadoinkle-backend-static.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 5590704ab7a49919350e8e04d7f232fe9b8684d70c22468511488f4a2906c8c3+-- hash: 93513838cda5ea2fae8871bd7419fc548395fc98be7b87c6483bc799b60058cc name: Shpadoinkle-backend-static-version: 0.0.0.1+version: 0.1.0.0 synopsis: A backend for rendering Shpadoinkle as Text. description: 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. category: Web@@ -29,8 +29,8 @@ ./. ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -fwarn-incomplete-uni-patterns -fwarn-tabs -fwarn-incomplete-record-updates -fwarn-identities build-depends:- Shpadoinkle <0.1- , base >=4.12.0 && <4.13+ Shpadoinkle+ , base >=4.12.0 && <4.15 , compactable >=0.1.2 && <0.2 , text >=1.2.3 && <1.3 default-language: Haskell2010
Shpadoinkle/Backend/Static.hs view
@@ -1,6 +1,9 @@ {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} +{-|+ Get your view as plain text, ignoring event listeners.+-} module Shpadoinkle.Backend.Static ( renderStatic ) where @@ -12,6 +15,7 @@ import Shpadoinkle hiding (name, props, text) +-- | Render @Shpadoinkle.Html@ as @Text@ renderStatic :: Html m a -> Text renderStatic = \case Node tag props _ | isSelfClosing tag