mirror of
https://github.com/srid/ema.git
synced 2024-11-25 20:12:20 +03:00
Fix a static site generation bug in Ex02_Basic.hs
This commit is contained in:
parent
1dbae61429
commit
e7458816be
@ -1,5 +1,9 @@
|
||||
# Revision history for ema
|
||||
|
||||
## Unreleased
|
||||
|
||||
- Fix bug in `Ex02_Basic.hs` (wasn't generating HTML files)
|
||||
|
||||
## 0.6.0.0 -- 2022-02-05
|
||||
|
||||
- Websocket API: Add `ema.switchRoute` to switch to other routes in live server.
|
||||
|
@ -1,6 +1,6 @@
|
||||
cabal-version: 2.4
|
||||
name: ema
|
||||
version: 0.6.0.0
|
||||
version: 0.6.0.1
|
||||
license: AGPL-3.0-only
|
||||
copyright: 2021 Sridhar Ratnakumar
|
||||
maintainer: srid@srid.ca
|
||||
|
@ -33,8 +33,7 @@ main = do
|
||||
void $
|
||||
Ema.runEma (\_act m -> Ema.AssetGenerated Ema.Html . render m) $ \act model -> do
|
||||
LVar.set model $ Model "Hello World. "
|
||||
when (CLI.isLiveServer act) $
|
||||
liftIO $ threadDelay maxBound
|
||||
liftIO $ threadDelay maxBound
|
||||
|
||||
render :: Model -> Route -> LByteString
|
||||
render model r =
|
||||
|
Loading…
Reference in New Issue
Block a user