carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1{-# LANGUAGE TemplateHaskell #-}
2
3-- | Files compiled into the binary. The two TodoMVC stylesheets come
4-- straight from the bakeoff's @shared/@ directory, so they're served byte
5-- for byte.
6module Todo.Assets
7 ( baseCss
8 , indexCss
9 , appCss
10 , appJs
11 ) where
12
13import Data.ByteString (ByteString)
14import Data.FileEmbed (embedFile, makeRelativeToProject)
15
16baseCss, indexCss, appCss, appJs :: ByteString
17baseCss = $(makeRelativeToProject "../../shared/base.css" >>= embedFile)
18indexCss = $(makeRelativeToProject "../../shared/index.css" >>= embedFile)
19appCss = $(makeRelativeToProject "static/app.css" >>= embedFile)
20appJs = $(makeRelativeToProject "static/app.js" >>= embedFile)
21