From 9b82e1672d0a0a4adf2cd75c6be21596926dfc13 Mon Sep 17 00:00:00 2001 From: hcatlin Date: Mon, 7 Aug 2006 23:55:16 +0000 Subject: [PATCH] Basic test-templates. git-svn-id: svn://hamptoncatlin.com/haml/trunk@15 7063305b-7217-0410-af8c-cdc13e5119b9 --- test/results/helpers.xhtml | 2 ++ test/results/standard.xhtml | 24 ++++++++++++++++++++++++ test/results/very_basic.xhtml | 7 +++++++ test/templates/helpers.haml | 2 ++ test/templates/standard.haml | 16 ++++++++++++++++ test/templates/very_basic.haml | 4 ++++ 6 files changed, 55 insertions(+) create mode 100644 test/results/helpers.xhtml create mode 100644 test/results/standard.xhtml create mode 100644 test/results/very_basic.xhtml create mode 100644 test/templates/helpers.haml create mode 100644 test/templates/standard.haml create mode 100644 test/templates/very_basic.haml diff --git a/test/results/helpers.xhtml b/test/results/helpers.xhtml new file mode 100644 index 00000000..bd6838a9 --- /dev/null +++ b/test/results/helpers.xhtml @@ -0,0 +1,2 @@ +&&&&&&&&&&& +Hello nextline diff --git a/test/results/standard.xhtml b/test/results/standard.xhtml new file mode 100644 index 00000000..37049c1e --- /dev/null +++ b/test/results/standard.xhtml @@ -0,0 +1,24 @@ + + + + Hampton Catlin Is Totally Awesome + + + + +
+ Yes, ladies and gentileman. He is just that egotistical. + Fantastic! This should be multi-line output + The question is if this would translate! Ahah! + 20 +
+
Quotes should be loved! Just like people!
+
with this text
+ + + diff --git a/test/results/very_basic.xhtml b/test/results/very_basic.xhtml new file mode 100644 index 00000000..9713fb1c --- /dev/null +++ b/test/results/very_basic.xhtml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/test/templates/helpers.haml b/test/templates/helpers.haml new file mode 100644 index 00000000..55009fd2 --- /dev/null +++ b/test/templates/helpers.haml @@ -0,0 +1,2 @@ += h("&&&&&&&&&&&") #this is an ActionView Helper... should load += flatten("Hello\nnextline") #a haml helper diff --git a/test/templates/standard.haml b/test/templates/standard.haml new file mode 100644 index 00000000..26354a6c --- /dev/null +++ b/test/templates/standard.haml @@ -0,0 +1,16 @@ +!!! +%html{"xml-lang" => "en-US"} + %head + %title Hampton Catlin Is Totally Awesome + %meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"}/ + %body + / You're In my house now! + .header + Yes, ladies and gentileman. He is just that egotistical. + Fantastic! This should be multi-line output + The question is if this would translate! Ahah! + = 1 + 9 + 8 + 2 #numbers should work and this should be ignored + #body= " Quotes should be loved! Just like people!" + #combo.of_divs_with_underscore= @should_eval = "with this text" + .footer + %strong.shout= "This is a really long ruby quote. It should be loved and wrapped because its more than 50 characters. This value may change in the future and this test may look stupid. \nSo, I'm just making it *really* long. God, I hope this works" diff --git a/test/templates/very_basic.haml b/test/templates/very_basic.haml new file mode 100644 index 00000000..93396b96 --- /dev/null +++ b/test/templates/very_basic.haml @@ -0,0 +1,4 @@ +!!! +%html + %head + %body