diff options
| author | Hannes Schulze <contact@haschu.me> | 2026-10-03 22:52:15 +0200 |
|---|---|---|
| committer | Hannes Schulze <contact@haschu.me> | 2026-10-03 22:52:15 +0200 |
| commit | 0bffdaf882a9ecdae7887ac59223ed489c96dc64 (patch) | |
| tree | 53c9393820018f55c76fbf54aa56803dbeb65ab7 /src/Settlr/Views/Home.hs | |
| parent | 0d43caf82404abc610a56520bfe7ef15559ce2c5 (diff) | |
routing
Diffstat (limited to 'src/Settlr/Views/Home.hs')
| -rw-r--r-- | src/Settlr/Views/Home.hs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Settlr/Views/Home.hs b/src/Settlr/Views/Home.hs new file mode 100644 index 0000000..14fedfd --- /dev/null +++ b/src/Settlr/Views/Home.hs @@ -0,0 +1,18 @@ +{-# LANGUAGE OverloadedStrings #-} + +module Settlr.Views.Home + ( viewHome + ) where + +import Settlr.Config (ScriptM) +import Text.Blaze.Html5 (Html, (!)) +import qualified Text.Blaze.Html5 as H +import qualified Text.Blaze.Html5.Attributes as A + +viewHome :: ScriptM Html +viewHome = pure $ H.docTypeHtml $ do + H.head $ do + H.title "Test" + H.meta ! A.charset "utf-8" + H.body $ do + H.p "Hello, world!" |
