mirror of
https://github.com/srid/ema.git
synced 2024-12-03 05:44:35 +03:00
Update Ex02_Basic.hs
This commit is contained in:
parent
617e8bd3c6
commit
d8e14ab63a
@ -1,11 +1,6 @@
|
|||||||
{-# LANGUAGE TypeApplications #-}
|
{-# LANGUAGE TypeApplications #-}
|
||||||
|
|
||||||
-- | A very simple site with routes, but based on dynamically changing values
|
-- | A very simple site with two routes, and HTML rendered using Blaze DSL
|
||||||
--
|
|
||||||
-- The current time is computed in the server every second, and the resultant
|
|
||||||
-- generated HTML is automatically updated on the browser. This is only a demo;
|
|
||||||
-- usually we render HTML based on files on disk or something accessible outside
|
|
||||||
-- of the browser. More advanced examples will demonstrate that.
|
|
||||||
module Ema.Example.Ex02_Basic where
|
module Ema.Example.Ex02_Basic where
|
||||||
|
|
||||||
import Control.Concurrent (threadDelay)
|
import Control.Concurrent (threadDelay)
|
||||||
|
Loading…
Reference in New Issue
Block a user