lucid-xstatic 0.1.0 → 0.1.1
raw patch · 3 files changed
+6/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- lucid-xstatic.cabal +1/−1
- src/Lucid/XStatic.hs +1/−1
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +## 0.1.1++- Add etag to url query args to ensure refresh.+ ## 0.1.0 - Initial release
lucid-xstatic.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: lucid-xstatic-version: 0.1.0+version: 0.1.1 synopsis: Lucid helper for XStatic description: Use this library to add XStaticFile to your Html. category: JavaScript
src/Lucid/XStatic.hs view
@@ -27,7 +27,7 @@ where xrender :: XStaticFile -> Html () xrender xf =- let src = "/xstatic" <> decodeUtf8 (xfPath xf)+ let src = "/xstatic" <> decodeUtf8 (xfPath xf) <> "?v=" <> decodeUtf8 (xfETag xf) in case xfType xf of "application/javascript" -> with (script_ mempty) [src_ src] "text/css" -> link_ [href_ src, rel_ "stylesheet"]