Created
August 3, 2012 16:39
-
-
Save tcsavage/3249346 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
module BlazeHelpers where | |
import Text.Blaze ((!)) | |
import Text.Blaze.Html5 | |
import qualified Text.Blaze.Html5 as H | |
import Text.Blaze.Html5.Attributes | |
import qualified Text.Blaze.Html5.Attributes as A | |
import Text.Blaze.Renderer.Pretty | |
stylesheet :: String -> Html | |
stylesheet uri = link ! rel "stylesheet" ! type_ "text/css" ! href (toValue uri) | |
stylesheets :: [String] -> Html | |
stylesheets uris = sequence_ $ Prelude.map stylesheet uris |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment