1
1
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:
Sridhar Ratnakumar 2022-02-08 11:15:45 -05:00
parent 1dbae61429
commit e7458816be
3 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

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

View File

@ -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 =