Created
March 4, 2014 15:35
-
-
Save echaozh/9348690 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
page1 :: Markup | |
page1 = html $ do | |
head $ do | |
title "Introduction page." | |
link ! rel "stylesheet" ! type_ "text/css" ! href "screen.css" | |
body $ do | |
div ! id "header" $ "Syntax" | |
p "This is an example of BlazeMarkup syntax." | |
ul $ mapM_ (li . toMarkup . show) [1, 2, 3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment