--FILE-- false)); echo $env->compileString($parts['HAML'], "$file.haml"); --HAML-- !!! %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en-US", "lang" => "en-US"} %head %title This is some title %meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"} %body / Hey, a comment! .header This is the header, with multiple lines in it. = 1 + 9 + 8 + 2 / And now, a = "multiline comment" %p everything can be nested in comments #body= " Hey I print something!" - foreach(range(0, 4) as $number) = $number Wow.| %p = "Holy cow " . | "multiline " . | "tags! " . | "A pipe (|) even!" | = count(array(1, 2, 3, "|")) = "Holy cow " . | "multiline " . | "tags! " | %div.silent - $foo = "this" - $foo .= " shouldn't" - $foo .= " be displayed" = $foo . " but now it should!" -# Woah crap a non rendered comment! -# That was a line that shouldn't close everything. \= Escape %ul.really.cool - foreach(range("a", "f") as $a) %li= $a #combo.of_divs_with_underscore= "with this text" #escaping-test = "this is not escaped" &= "this is escaped" != "this is forcibly not escaped" .footer %strong.shout= "footer"