diff options
author | Joris Guyonvarch | 2015-07-06 00:16:45 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-07-06 00:16:45 +0200 |
commit | 4ce9751c9e645916fdde71874c2cdadd252f32a0 (patch) | |
tree | 1014c58787231cbdc3ae2799f32127b40ab393ab /src/server/View |
Setting up Scotty, Persistent, Clay, Blaze, Esqueleto, Elm
Diffstat (limited to 'src/server/View')
-rw-r--r-- | src/server/View/Page.hs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/server/View/Page.hs b/src/server/View/Page.hs new file mode 100644 index 0000000..aa4df72 --- /dev/null +++ b/src/server/View/Page.hs @@ -0,0 +1,30 @@ +{-# LANGUAGE OverloadedStrings #-} + +module View.Page + ( page + ) where + +import Data.Text.Internal.Lazy (Text) + +import Text.Blaze.Html +import Text.Blaze.Html5 +import Text.Blaze.Html5.Attributes +import qualified Text.Blaze.Html5 as H +import Text.Blaze.Html.Renderer.Text (renderHtml) + +import Design.Global (globalDesign) + +page :: Text +page = + renderHtml . docTypeHtml $ do + H.head $ do + meta ! charset "UTF-8" + H.title "Payments" + script ! src "/javascripts/client.js" $ "" + link ! rel "stylesheet" ! type_ "text/css" ! href "/css/reset.css" + link ! rel "stylesheet" ! href "/css/font-awesome/css/font-awesome.min.css" + link ! rel "stylesheet" ! type_ "text/css" ! href "/css/global.css" + link ! rel "icon" ! type_ "image/png" ! href "/images/icon.png" + H.style $ toHtml globalDesign + body $ + script ! src "/javascripts/elmLauncher.js" $ "" |