{-# LANGUAGE TemplateHaskell #-} -- | Files compiled into the binary. The two TodoMVC stylesheets come -- straight from the bakeoff's @shared/@ directory, so they're served byte -- for byte. module Todo.Assets ( baseCss , indexCss , appCss , appJs ) where import Data.ByteString (ByteString) import Data.FileEmbed (embedFile, makeRelativeToProject) baseCss, indexCss, appCss, appJs :: ByteString baseCss = $(makeRelativeToProject "../../shared/base.css" >>= embedFile) indexCss = $(makeRelativeToProject "../../shared/index.css" >>= embedFile) appCss = $(makeRelativeToProject "static/app.css" >>= embedFile) appJs = $(makeRelativeToProject "static/app.js" >>= embedFile)