Created
May 20, 2011 21:14
-
-
Save michaelschade/983816 to your computer and use it in GitHub Desktop.
Skeleton comment function
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
-- | Comment combinator. `if` is included, so only condition is needed. E.g., | |
-- | |
-- > comment "lt IE 7" | |
comment :: String -> Html -> Html | |
comment cond = Parent "comment" (ss cond') "<![endif]-->" | |
where cond' = "<!--[if " ++ cond ++ " ]" | |
ss s = StaticString (s ++) (C8.pack s) (T.pack s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment