mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Basic test-templates.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@15 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
7e1be5b6be
commit
9b82e1672d
6 changed files with 55 additions and 0 deletions
2
test/results/helpers.xhtml
Normal file
2
test/results/helpers.xhtml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
&&&&&&&&&&&
|
||||||
|
Hello
nextline
|
24
test/results/standard.xhtml
Normal file
24
test/results/standard.xhtml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xml-lang='en-US'>
|
||||||
|
<head>
|
||||||
|
<title>Hampton Catlin Is Totally Awesome</title>
|
||||||
|
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<!-- You're In my house now! -->
|
||||||
|
<div class='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!
|
||||||
|
20
|
||||||
|
</div>
|
||||||
|
<div id='body'> Quotes should be loved! Just like people!</div>
|
||||||
|
<div class='of_divs_with_underscore' id='combo'>with this text</div>
|
||||||
|
<div class='footer'>
|
||||||
|
<strong class='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.
|
||||||
|
So, I'm just making it *really* long. God, I hope this works
|
||||||
|
</strong>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
7
test/results/very_basic.xhtml
Normal file
7
test/results/very_basic.xhtml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
test/templates/helpers.haml
Normal file
2
test/templates/helpers.haml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
= h("&&&&&&&&&&&") #this is an ActionView Helper... should load
|
||||||
|
= flatten("Hello\nnextline") #a haml helper
|
16
test/templates/standard.haml
Normal file
16
test/templates/standard.haml
Normal file
|
@ -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"
|
4
test/templates/very_basic.haml
Normal file
4
test/templates/very_basic.haml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
!!!
|
||||||
|
%html
|
||||||
|
%head
|
||||||
|
%body
|
Loading…
Add table
Reference in a new issue