Skip to content

Instantly share code, notes, and snippets.

@echaozh
Created March 4, 2014 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echaozh/9348690 to your computer and use it in GitHub Desktop.
Save echaozh/9348690 to your computer and use it in GitHub Desktop.
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