Shpadoinkle-backend-static 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+10/−5 lines, 3 filesdep ~basePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base
API changes (from Hackage documentation)
Files
- LICENSE +1/−1
- Shpadoinkle-backend-static.cabal +3/−3
- Shpadoinkle/Backend/Static.hs +6/−1
LICENSE view
@@ -1,5 +1,5 @@ Shpadoinkle Static, I think I know exactly what it means-Copyright © 2019 Isaac Shpaira+Copyright © 2020 Isaac Shpaira All rights reserved. Redistribution and use in source and binary forms, with or without
Shpadoinkle-backend-static.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 93513838cda5ea2fae8871bd7419fc548395fc98be7b87c6483bc799b60058cc+-- hash: 10c22468330265f5a289c3bd653839967387f602db4e70b02ae2d37205b03688 name: Shpadoinkle-backend-static-version: 0.1.0.0+version: 0.1.0.1 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@@ -30,7 +30,7 @@ ghc-options: -Wall -Wcompat -fwarn-redundant-constraints -fwarn-incomplete-uni-patterns -fwarn-tabs -fwarn-incomplete-record-updates -fwarn-identities build-depends: Shpadoinkle- , base >=4.12.0 && <4.15+ , base >=4.12.0 && <4.16 , compactable >=0.1.2 && <0.2 , text >=1.2.3 && <1.3 default-language: Haskell2010
Shpadoinkle/Backend/Static.hs view
@@ -52,7 +52,12 @@ renderProp :: Text -> Prop m a -> Maybe Text renderProp name = \case PListener _ -> Nothing- PText t -> Just $ name <> "=\"" <> t <> "\""+ PText t -> Just $ lice name <> "=\"" <> t <> "\"" PFlag True -> Just name PFlag False -> Nothing+ where+ lice = \case+ "className" -> "class"+ x -> x+