Skip to content

Instantly share code, notes, and snippets.

@tcsavage
Created August 3, 2012 16:39
Show Gist options
  • Save tcsavage/3249346 to your computer and use it in GitHub Desktop.
Save tcsavage/3249346 to your computer and use it in GitHub Desktop.
{-# 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