forked from sass/sass
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport benchmark.rb updates to stable.
- Loading branch information
Showing
5 changed files
with
99 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
%h2 This is a pretty complicated partial | ||
.partial | ||
%p It has several nested partials, | ||
%ul | ||
- 5.times do | ||
%li | ||
%strong Partial: | ||
- @nesting = 5 | ||
= render :partial => 'haml/templates/av_partial_2_ugly' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
- @nesting -= 1 | ||
.partial{:level => @nesting} | ||
%h3 This is a crazy deep-nested partial. | ||
%p== Nesting level #{@nesting} | ||
= render :partial => 'haml/templates/av_partial_2_ugly' if @nesting > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
!!! | ||
%html{html_attrs} | ||
%head | ||
%title Hampton Catlin Is Totally Awesome | ||
%meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"} | ||
%body | ||
%h1 | ||
This is very much like the standard template, | ||
except that it has some ActionView-specific stuff. | ||
It's only used for benchmarking. | ||
.crazy_partials= render :partial => 'haml/templates/av_partial_1_ugly' | ||
/ 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!" | ||
- 120.times do |number| | ||
- number | ||
Wow.| | ||
%p | ||
= "Holy cow " + | | ||
"multiline " + | | ||
"tags! " + | | ||
"A pipe (|) even!" | | ||
= [1, 2, 3].collect { |n| "PipesIgnored|" } | ||
= [1, 2, 3].collect { |n| | | ||
n.to_s | | ||
}.join("|") | | ||
%div.silent | ||
- foo = String.new | ||
- foo << "this" | ||
- foo << " shouldn't" | ||
- foo << " evaluate" | ||
= foo + " but now it should!" | ||
-# Woah crap a comment! | ||
-# That was a line that shouldn't close everything. | ||
%ul.really.cool | ||
- ('a'..'f').each do |a| | ||
%li= a | ||
#combo.of_divs_with_underscore= @should_eval = "with this text" | ||
= [ 104, 101, 108, 108, 111 ].map do |byte| | ||
- byte.chr | ||
.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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
standard.haml |