render_doc { html { head { title { text "My grand document!" } }; body { h1 { text "Heading" }; p { class_ "first"; # attribute class="first" text "This is the first paragraph!"; style_ "font: bold"; # another attr }; # it's just Perl, so we can mix in other code for (2..5) { p { text "Plus paragraph number $_." } } }; }; }; # #
#This is the first paragraph!
#Plus paragraph number 2.
#Plus paragraph number 3.
#Plus paragraph number 4.
#Plus paragraph number 5.
# #