ema-0.4.0.0: Static site generator library with hot reload
Safe HaskellNone
LanguageHaskell2010

Ema.Example.Ex03_Clock

Description

A very simple site with routes, but based on dynamically changing values

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.

Documentation

data Route Source #

Constructors

Index 
OnlyTime 

Instances

Instances details
Bounded Route Source # 
Instance details

Defined in Ema.Example.Ex03_Clock

Enum Route Source # 
Instance details

Defined in Ema.Example.Ex03_Clock

Show Route Source # 
Instance details

Defined in Ema.Example.Ex03_Clock

Methods

showsPrec :: Int -> Route -> ShowS #

show :: Route -> String #

showList :: [Route] -> ShowS #

Ema UTCTime Route Source # 
Instance details

Defined in Ema.Example.Ex03_Clock

main :: IO () Source #