incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r961978 [11/13] - in /incubator/deltacloud/trunk/framework: ./ app/ app/controllers/ app/helpers/ app/models/ app/views/ app/views/accounts/ app/views/credentials/ app/views/images/ app/views/instances/ app/views/layouts/ app/views/root/ co...
Date Thu, 08 Jul 2010 23:14:21 GMT
Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/helper_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/helper_test.rb?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/helper_test.rb (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/helper_test.rb Thu Jul  8 23:14:13 2010
@@ -0,0 +1,282 @@
+#!/usr/bin/env ruby
+require File.dirname(__FILE__) + '/../test_helper'
+require 'haml/template'
+
+class ActionView::Base
+  def nested_tag
+    content_tag(:span) {content_tag(:div) {"something"}}
+  end
+end
+
+module Haml::Helpers
+  def something_that_uses_haml_concat
+    haml_concat('foo').to_s
+  end
+end
+
+class HelperTest < Test::Unit::TestCase
+  Post = Struct.new('Post', :body)
+  
+  def setup
+    @base = ActionView::Base.new
+    @base.controller = ActionController::Base.new
+
+    if defined?(ActionController::Response)
+      # This is needed for >=3.0.0
+      @base.controller.response = ActionController::Response.new
+    end
+
+    @base.instance_variable_set('@post', Post.new("Foo bar\nbaz"))
+  end
+
+  def render(text, options = {})
+    if options == :action_view
+      @base.render :inline => text, :type => :haml
+    else
+      scope = options.delete :scope_object
+      Haml::Engine.new(text, options).to_html(scope ? scope : Object.new)
+    end
+  end
+
+  def test_flatten
+    assert_equal("FooBar", Haml::Helpers.flatten("FooBar"))
+
+    assert_equal("FooBar", Haml::Helpers.flatten("Foo\rBar"))
+
+    assert_equal("Foo&#x000A;Bar", Haml::Helpers.flatten("Foo\nBar"))
+
+    assert_equal("Hello&#x000A;World!&#x000A;YOU ARE FLAT?&#x000A;OMGZ!",
+      Haml::Helpers.flatten("Hello\nWorld!\nYOU ARE \rFLAT?\n\rOMGZ!"))
+  end
+
+  def test_list_of_should_render_correctly
+    assert_equal("<li>1</li>\n<li>2</li>\n", render("= list_of([1, 2]) do |i|\n  = i"))
+    assert_equal("<li>[1]</li>\n", render("= list_of([[1]]) do |i|\n  = i.inspect"))
+    assert_equal("<li>\n  <h1>Fee</h1>\n  <p>A word!</p>\n</li>\n<li>\n  <h1>Fi</h1>\n  <p>A word!</p>\n</li>\n<li>\n  <h1>Fo</h1>\n  <p>A word!</p>\n</li>\n<li>\n  <h1>Fum</h1>\n  <p>A word!</p>\n</li>\n",
+      render("= list_of(['Fee', 'Fi', 'Fo', 'Fum']) do |title|\n  %h1= title\n  %p A word!"))
+  end
+
+  def test_buffer_access
+    assert(render("= buffer") =~ /#<Haml::Buffer:0x[a-z0-9]+>/)
+    assert_equal(render("= (buffer == _hamlout)"), "true\n")
+  end
+
+  def test_tabs
+    assert_equal("foo\n  bar\nbaz\n", render("foo\n- tab_up\nbar\n- tab_down\nbaz"))
+    assert_equal("          <p>tabbed</p>\n", render("- buffer.tabulation=5\n%p tabbed"))
+  end
+  
+  def test_helpers_dont_leak
+    # Haml helpers shouldn't be accessible from ERB
+    render("foo")
+    proper_behavior = false
+
+    begin
+      ActionView::Base.new.render(:inline => "<%= flatten('Foo\\nBar') %>")
+    rescue NoMethodError, ActionView::TemplateError
+      proper_behavior = true
+    end
+    assert(proper_behavior)
+
+    begin
+      ActionView::Base.new.render(:inline => "<%= concat('foo') %>")
+    rescue ArgumentError, NameError
+      proper_behavior = true
+    end    
+    assert(proper_behavior)
+  end
+  
+  def test_action_view_included
+    assert(Haml::Helpers.action_view?)
+  end
+  
+  def test_form_tag
+    # This is usually provided by ActionController::Base.
+    def @base.protect_against_forgery?; false; end
+    result = render("- form_tag 'foo' do\n  %p bar\n  %strong baz", :action_view)
+    should_be = "<form action=\"foo\" method=\"post\">\n  <p>bar</p>\n  <strong>baz</strong>\n</form>\n"
+    assert_equal(should_be, result)
+  end
+
+  def test_text_area
+    assert_equal(%(<textarea id="body" name="body">Foo&#x000A;Bar&#x000A; Baz&#x000A;   Boom</textarea>\n),
+                 render('= text_area_tag "body", "Foo\nBar\n Baz\n   Boom"', :action_view))
+
+    assert_equal(%(<textarea cols="40" id="post_body" name="post[body]" rows="20">Foo bar&#x000A;baz</textarea>\n),
+                 render('= text_area :post, :body', :action_view))    
+
+    assert_equal(%(<pre>Foo bar&#x000A;   baz</pre>\n),
+                 render('= content_tag "pre", "Foo bar\n   baz"', :action_view))    
+  end
+  
+  def test_capture_haml
+    assert_equal("\"<p>13</p>\\n\"\n", render("- foo = capture_haml(13) do |a|\n  %p= a\n= foo.dump"))
+  end
+
+  def test_content_tag_block
+    assert_equal(<<HTML.strip, render(<<HAML, :action_view))
+<div><p>bar</p>
+<strong>bar</strong>
+</div>
+HTML
+- content_tag :div do
+  %p bar
+  %strong bar
+HAML
+  end
+
+  def test_haml_tag_attribute_html_escaping
+    assert_equal("<p id='foo&amp;bar'>baz</p>\n", render("%p{:id => 'foo&bar'} baz", :escape_html => true))
+  end
+
+  def test_haml_tag_autoclosed_tags_are_closed
+    assert_equal("<br class='foo' />\n", render("- haml_tag :br, :class => 'foo'"))
+  end
+
+  def test_haml_tag_non_autoclosed_tags_arent_closed
+    assert_equal("<p></p>\n", render("- haml_tag :p"))
+  end
+
+  def test_haml_tag_renders_text_on_a_single_line
+    assert_equal("<p>#{'a' * 100}</p>\n", render("- haml_tag :p, 'a' * 100"))
+  end
+
+  def test_haml_tag_raises_error_for_multiple_content
+    assert_raise(Haml::Error) { render("- haml_tag :p, 'foo' do\n  bar") }
+  end
+
+  def test_haml_tag_flags
+    assert_equal("<p />\n", render("- haml_tag :p, :/"))
+    assert_equal("<p>kumquat</p>\n", render("- haml_tag :p, :< do\n  kumquat"))
+
+    assert_raise(Haml::Error) { render("- haml_tag :p, 'foo', :/") }
+    assert_raise(Haml::Error) { render("- haml_tag :p, :/ do\n  foo") }
+  end
+
+  def test_haml_tag_error_return
+    assert_raise(Haml::Error) { render("= haml_tag :p") }
+  end
+
+  def test_is_haml
+    assert(!ActionView::Base.new.is_haml?)
+    assert_equal("true\n", render("= is_haml?"))
+    assert_equal("true\n", render("= is_haml?", :action_view))
+    assert_equal("false", @base.render(:inline => '<%= is_haml? %>'))
+    assert_equal("false\n", render("= render :inline => '<%= is_haml? %>'", :action_view))
+  end
+
+  def test_page_class
+    controller = Struct.new(:controller_name, :action_name).new('troller', 'tion')
+    scope = Struct.new(:controller).new(controller)
+    result = render("%div{:class => page_class} MyDiv", :scope_object => scope)
+    expected = "<div class='troller tion'>MyDiv</div>\n"
+    assert_equal expected, result
+  end
+
+  def test_indented_capture
+    assert_equal("  \n  Foo\n  ", @base.render(:inline => "  <% res = capture do %>\n  Foo\n  <% end %><%= res %>"))
+  end
+
+  def test_capture_deals_properly_with_collections
+    Haml::Helpers.module_eval do 
+      def trc(collection, &block)
+        collection.each do |record|
+          haml_concat capture_haml(record, &block)
+        end
+      end
+    end
+
+    assert_equal("1\n\n2\n\n3\n\n", render("- trc([1, 2, 3]) do |i|\n  = i.inspect"))
+  end
+
+  def test_find_and_preserve_with_block
+    assert_equal("<pre>Foo&#x000A;Bar</pre>\nFoo\nBar\n",
+                 render("= find_and_preserve do\n  %pre\n    Foo\n    Bar\n  Foo\n  Bar"))
+  end
+
+  def test_find_and_preserve_with_block_and_tags
+    assert_equal("<pre>Foo\nBar</pre>\nFoo\nBar\n",
+                 render("= find_and_preserve([]) do\n  %pre\n    Foo\n    Bar\n  Foo\n  Bar"))
+  end
+
+  def test_preserve_with_block
+    assert_equal("<pre>Foo&#x000A;Bar</pre>&#x000A;Foo&#x000A;Bar\n",
+                 render("= preserve do\n  %pre\n    Foo\n    Bar\n  Foo\n  Bar"))
+  end
+
+  def test_init_haml_helpers
+    context = Object.new
+    class << context
+      include Haml::Helpers
+    end
+    context.init_haml_helpers
+
+    result = context.capture_haml do
+      context.haml_tag :p, :attr => "val" do
+        context.haml_concat "Blah"
+      end
+    end
+
+    assert_equal("<p attr='val'>\n  Blah\n</p>\n", result)
+  end
+
+  def test_non_haml
+    assert_equal("false\n", render("= non_haml { is_haml? }"))
+  end
+
+  def test_content_tag_nested
+    assert_equal "<span><div>something</div></span>", render("= nested_tag", :action_view).strip
+  end
+
+  def test_error_return
+    assert_raise(Haml::Error, <<MESSAGE) {render("= haml_concat 'foo'")}
+haml_concat outputs directly to the Haml template.
+Disregard its return value and use the - operator,
+or use capture_haml to get the value as a String.
+MESSAGE
+  end
+
+  def test_error_return_line
+    render("%p foo\n= haml_concat 'foo'\n%p bar")
+    assert false, "Expected Haml::Error"
+  rescue Haml::Error => e
+    assert_equal 2, e.backtrace[0].scan(/:(\d+)/).first.first.to_i
+  end
+
+  def test_error_return_line_in_helper
+    render("- something_that_uses_haml_concat")
+    assert false, "Expected Haml::Error"
+  rescue Haml::Error => e
+    assert_equal 13, e.backtrace[0].scan(/:(\d+)/).first.first.to_i
+  end
+
+  class ActsLikeTag
+    # We want to be able to have people include monkeypatched ActionView helpers
+    # without redefining is_haml?.
+    # This is accomplished via Object#is_haml?, and this is a test for it.
+    include ActionView::Helpers::TagHelper
+    def to_s
+      content_tag :p, 'some tag content'
+    end
+  end
+
+  def test_random_class_includes_tag_helper
+    assert_equal "<p>some tag content</p>", ActsLikeTag.new.to_s
+  end
+
+  def test_capture_with_nuke_outer
+    assert_equal "<div></div>\n*<div>hi there!</div>\n", render(<<HAML)
+%div
+= precede("*") do
+  %div> hi there!
+HAML
+
+    assert_equal "<div></div>\n*<div>hi there!</div>\n", render(<<HAML)
+%div
+= precede("*") do
+  = "  "
+  %div> hi there!
+HAML
+  end
+end
+

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/html2haml_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/html2haml_test.rb?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/html2haml_test.rb (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/html2haml_test.rb Thu Jul  8 23:14:13 2010
@@ -0,0 +1,108 @@
+#!/usr/bin/env ruby
+require File.dirname(__FILE__) + '/../test_helper'
+require 'haml/html'
+
+class Html2HamlTest < Test::Unit::TestCase
+
+  def test_empty_render_should_remain_empty
+    assert_equal '', render('')
+  end
+
+  def test_id_and_class_should_be_removed_from_hash
+    assert_equal '%span#foo.bar', render('<span id="foo" class="bar"> </span>')
+  end
+
+  def test_no_tag_name_for_div_if_class_or_id_is_present
+    assert_equal '#foo', render('<div id="foo"> </div>')
+    assert_equal '.foo', render('<div class="foo"> </div>')
+  end
+
+  def test_multiple_class_names
+    assert_equal '.foo.bar.baz', render('<div class=" foo  bar  baz "> </div>')
+  end
+
+  def test_should_have_pretty_attributes
+    assert_equal_attributes('%input{ :type => "text", :name => "login" }',
+      render('<input type="text" name="login" />'))
+    assert_equal_attributes('%meta{ "http-equiv" => "Content-Type", :content => "text/html" }',
+      render('<meta http-equiv="Content-Type" content="text/html" />'))
+  end
+
+  def test_sqml_comment
+    assert_equal "/\n  IE sucks", render('<!-- IE sucks -->')
+  end
+
+  def test_rhtml
+    assert_equal '- foo = bar', render_rhtml('<% foo = bar %>')
+    assert_equal '- foo = bar', render_rhtml('<% foo = bar -%>')
+    assert_equal '= h @item.title', render_rhtml('<%=h @item.title %>')
+    assert_equal '= h @item.title', render_rhtml('<%=h @item.title -%>')
+  end
+  
+  def test_rhtml_with_html_special_chars
+    assert_equal '= 3 < 5 ? "OK" : "Your computer is b0rken"',
+      render_rhtml(%Q{<%= 3 < 5 ? "OK" : "Your computer is b0rken" %>})
+  end
+  
+  def test_rhtml_in_class_attribute
+    assert_equal "%div{ :class => dyna_class }\n  I have a dynamic attribute",
+      render_rhtml(%Q{<div class="<%= dyna_class %>">I have a dynamic attribute</div>})
+  end
+  
+  def test_rhtml_in_id_attribute
+    assert_equal "%div{ :id => dyna_id }\n  I have a dynamic attribute",
+      render_rhtml(%Q{<div id="<%= dyna_id %>">I have a dynamic attribute</div>})
+  end
+  
+  def test_rhtml_in_attribute_results_in_string_interpolation
+    assert_equal %(%div{ :id => "item_\#{i}" }\n  Ruby string interpolation FTW),
+      render_rhtml(%Q{<div id="item_<%= i %>">Ruby string interpolation FTW</div>})
+  end
+  
+  def test_rhtml_in_attribute_with_trailing_content
+    assert_equal %(%div{ :class => "\#{12}!" }\n  Bang!),
+      render_rhtml(%Q{<div class="<%= 12 %>!">Bang!</div>})
+  end
+  
+  def test_rhtml_in_attribute_to_multiple_interpolations
+    assert_equal %(%div{ :class => "\#{12} + \#{13}" }\n  Math is super),
+      render_rhtml(%Q{<div class="<%= 12 %> + <%= 13 %>">Math is super</div>})
+  end
+  
+  def test_whitespace_eating_erb_tags
+    assert_equal %(- form_for),
+      render_rhtml(%Q{<%- form_for -%>})
+  end
+
+  def test_cdata
+    assert_equal(<<HAML.strip, render(<<HTML))
+%p
+  :cdata
+    <a foo="bar" baz="bang">
+    <div id="foo">flop</div>
+    </a>
+HAML
+<p><![CDATA[
+  <a foo="bar" baz="bang">
+    <div id="foo">flop</div>
+  </a>
+]]></p>
+HTML
+  end
+
+  protected
+
+  def render(text, options = {})
+    Haml::HTML.new(text, options).render.rstrip
+  end
+
+  def render_rhtml(text)
+    render(text, :rhtml => true)
+  end
+
+  def assert_equal_attributes(expected, result)
+    expected_attr, result_attr = [expected, result].map { |s| s.gsub!(/\{ (.+) \}/, ''); $1.split(', ').sort }
+    assert_equal expected_attr, result_attr
+    assert_equal expected, result
+  end
+end

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/markaby/standard.mab
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/markaby/standard.mab?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/markaby/standard.mab (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/markaby/standard.mab Thu Jul  8 23:14:13 2010
@@ -0,0 +1,52 @@
+self << '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
+html(:xmlns=>'http://www.w3.org/1999/xhtml', 'xml:lang'=>'en-US') do
+  head do
+    title "Hampton Catlin Is Totally Awesome"
+    meta("http-equiv" => "Content-Type", :content => "text/html; charset=utf-8")
+  end
+  body do
+    # You're In my house now!
+    div :class => "header" do
+      self << %|Yes, ladies and gentileman. He is just that egotistical.
+      Fantastic! This should be multi-line output
+      The question is if this would translate! Ahah!|
+      self << 1 + 9 + 8 + 2 #numbers should work and this should be ignored
+    end
+    div(:id => "body") { self << "Quotes should be loved! Just like people!"}
+    120.times do |number|
+      number
+    end
+    self << "Wow.|"
+    p do
+      self << "Holy cow        " + 
+        "multiline       " +       
+        "tags!           " + 
+        "A pipe (|) even!"   
+      self << [1, 2, 3].collect { |n| "PipesIgnored|" }
+      self << [1, 2, 3].collect { |n|     
+          n.to_s                    
+        }.join("|")                
+    end
+    div(:class => "silent") do
+      foo = String.new
+      foo << "this"
+      foo << " shouldn't"
+      foo << " evaluate"
+      self << foo + " but now it should!"
+      # Woah crap a comment!
+    end
+    # That was a line that shouldn't close everything.
+    ul(:class => "really cool") do
+      ('a'..'f').each do |a|
+        li a
+      end
+    end
+    div((@should_eval = "with this text"), :id => "combo", :class => "of_divs_with_underscore")
+    [ 104, 101, 108, 108, 111 ].map do |byte|
+      byte.chr
+    end
+    div(:class => "footer") do
+      strong("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", :class => "shout")
+    end
+  end
+end

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/mocks/article.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/mocks/article.rb?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/mocks/article.rb (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/mocks/article.rb Thu Jul  8 23:14:13 2010
@@ -0,0 +1,6 @@
+class Article
+  attr_accessor :id, :title, :body
+  def initialize
+    @id, @title, @body = 1, 'Hello', 'World'
+  end
+end
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,12 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+  <head></head>
+  <body>
+    <div id='yieldy'>
+      Lorem ipsum dolor sit amet
+    </div>
+    <div id='nosym'>
+      Lorem ipsum dolor sit amet
+    </div>
+  </body>
+</html>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,9 @@
+<p></p>
+<p></p>
+<h1>Me!</h1>
+<div id='foo'>
+  <p id='bar'>All</p>
+  <br />
+  <p class='baz'>This</p>
+  Should render
+</div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/filters.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/filters.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/filters.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/filters.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,62 @@
+<style>
+  /* line 1 */
+  p { border-style: dotted; border-width: 22px; border-color: #ff00ff; }
+  
+  /* line 6 */
+  h1 { font-weight: normal; }
+</style>
+TESTING HAHAHAHA!
+<p>
+  <script type='text/javascript'>
+    //<![CDATA[
+      function newline(str) {
+        return "\n" + str;
+      }
+    //]]>
+  </script>
+</p>
+This
+  Is
+    Plain
+      Text
+        %strong right?
+ #{not interpolated}
+ \3
+ \#{also not}
+ \\
+<p>
+  <pre>This pre is pretty deeply&#x000A;      nested.&#x000A;   Does interpolation work?
+    This one is, too.&#x000A;Nested, that is.&#x000A;</pre>
+</p>
+<ul>
+
+  <li>a</li>
+
+  <li>b</li>
+
+  <li>c</li>
+
+  <li>d</li>
+
+  <li>e</li>
+
+  <li>f</li>
+
+  <li>g</li>
+
+  <li>h</li>
+
+  <li>i</li>
+
+  <li>j</li>
+
+
+
+</ul>
+<div class='res'>178</div>
+Text!
+Hello, World!
+How are you doing today?
+&lt;div class=&quot;foo&quot;&gt;
+  &lt;p&gt;I think &amp;mdash; or do I?&lt;/p&gt;
+&lt;/div&gt;

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpers.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpers.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpers.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpers.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,93 @@
+&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;&amp;
+<div>
+  <p class='title'>Title</p>
+  <p class='text'>
+    Woah this is really crazy
+    I mean wow,
+    man.
+  </p>
+</div>
+<div>
+  <p class='title'>Title</p>
+  <p class='text'>
+    Woah this is really crazy
+    I mean wow,
+    man.
+  </p>
+</div>
+<div>
+  <p class='title'>Title</p>
+  <p class='text'>
+    Woah this is really crazy
+    I mean wow,
+    man.
+  </p>
+</div>
+<p>foo</p>
+  <p>reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally loooooooooooooooooong</p>
+<div class='woah'>
+  <div id='funky'>
+    <div>
+      <h1>Big!</h1>
+      <p>Small</p>
+      <!-- Invisible -->
+    </div>
+    <div class='dilly'>
+      <p>foo</p>
+      <h1>bar</h1>
+    </div>
+  </div>
+  (<strong>parentheses!</strong>)
+</div>
+*<span class='small'>Not really</span>
+click
+<a href='thing'>here</a>.
+<p>baz</p>
+                    <p>boom</p>
+foo
+<p>
+  <form action="" method="post">
+</p>
+<div>
+  <form action="" method="post">
+    <div><input name="commit" type="submit" value="save" /></div>
+    <p>
+      @foo =
+      value one
+    </p>
+    Toplevel? false
+    <p>
+      @foo =
+      value three
+    </p>
+  </form>
+  <form action="" method="post">
+    Title:
+    <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
+    Body:
+    <input id="article_body" name="article[body]" size="30" type="text" value="World" />
+  </form>
+</div>
+<li><a href='http://www.google.com'>google</a></li>
+<p>
+  foo
+  <div>
+    bar
+  </div>
+  boom
+  baz
+  boom, again
+</p>
+<table>
+  <tr>
+    <td class='cell'>
+      <strong>strong!</strong>
+      data
+    </td>
+    <td>
+      more_data
+    </td>
+  </tr>
+</table>
+<hr />
+<div></div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpful.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpful.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpful.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/helpful.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,10 @@
+<div class='article' id='article_1'>
+  <h1>Hello</h1>
+  <div>World</div>
+</div>
+<div class='article' id='id_article_1'>id</div>
+<div class='article class' id='article_1'>class</div>
+<div class='article class' id='id_article_1'>id class</div>
+<div class='article full' id='article_1'>boo</div>
+<div class='article full' id='article_1'>moo</div>
+<div class='article articleFull' id='article_1'>foo</div>
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/just_stuff.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/just_stuff.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/just_stuff.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/just_stuff.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,68 @@
+<?xml version='1.0' encoding='utf-8' ?>
+<?xml version='1.0' encoding='iso-8859-1' ?>
+<?xml version='1.0' encoding='utf-8' ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+<strong apos="Foo's bar!">Boo!</strong>
+Embedded? false!
+Embedded? true!
+Embedded? true!
+Embedded? twice! true!
+Embedded? one af"t"er another!
+<p>Embedded? false!</p>
+<p>Embedded? true!</p>
+<p>Embedded? true!</p>
+<p>Embedded? twice! true!</p>
+<p>Embedded? one af"t"er another!</p>
+stuff followed by whitespace
+<strong>block with whitespace</strong>
+<p>
+  Escape
+  - character
+  %p foo
+  yee\ha
+</p>
+<!-- Short comment -->
+<!-- 
+  This is a block comment
+  cool, huh?
+  <strong>there can even be sub-tags!</strong>
+  Or script!
+-->
+<p class=''>class attribute should appear!</p>
+<p>this attribute shouldn't appear</p>
+<!--[if lte IE6]> conditional comment! <![endif]-->
+<!--[if gte IE7]> 
+  <p>Block conditional comment</p>
+  <div>
+    <h1>Cool, eh?</h1>
+  </div>
+<![endif]-->
+<!--[if gte IE5.2]> 
+  Woah a period.
+<![endif]-->
+testtest
+<br />
+<meta foo='bar' />
+<img />
+<hr />
+<link />
+<script>Inline content</script>
+<br>
+  Nested content
+</br>
+<p class='article bar foo' id='article_1'>Blah</p>
+<p class='article foo' id='article_1'>Blah</p>
+<p class='article quux qux' id='article_1'>Blump</p>
+Woah inner quotes
+<p class='dynamic_quote' dyn='3' quotes="single '"></p>
+<p class='dynamic_self_closing' dyn='3' />
+<body>
+  hello
+  <div>
+    <img />
+  </div>
+</body>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/list.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/list.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/list.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/list.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,12 @@
+!Not a Doctype!
+<ul>
+  <li>a</li>
+  <li>b</li>
+  <li>c</li>
+  <li>d</li>
+  <li>e</li>
+  <li>f</li>
+  <li>g</li>
+  <li>h</li>
+  <li>i</li>
+</ul>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,40 @@
+<p>
+  <q>Foo</q>
+</p>
+<p>
+  <q a='2'>Foo</q>
+</p>
+<p>
+  <q>Foo
+  Bar</q>
+</p>
+<p>
+  <q a='2'>Foo
+  Bar</q>
+</p>
+<p>
+  <q>Foo
+  Bar</q>
+</p>
+<p>
+  <q a='2'>Foo
+  Bar</q>
+</p>
+<p>
+  <q><div>
+    Foo
+    Bar
+  </div></q>
+</p>
+<p>
+  <q a='2'><div>
+    Foo
+    Bar
+  </div></q>
+</p>
+<p>
+  <q>foo</q>
+  <q a='2'>
+    bar
+  </q>
+</p>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,148 @@
+<p>
+  <p><q>
+      Foo
+    </q></p>
+</p>
+<p>
+  <p><q a='2'>
+      Foo
+    </q></p>
+</p>
+<p>
+  <p><q>Foo</q></p>
+</p>
+<p>
+  <p><q a='2'>Foo</q></p>
+</p>
+<p>
+  <p><q>
+      Foo
+    </q></p>
+</p>
+<p>
+  <p><q a='2'>
+      Foo
+    </q></p>
+</p>
+<p>
+  <p><q>Foo</q></p>
+</p>
+<p>
+  <p><q a='2'>Foo</q></p>
+</p>
+<p>
+  <p><q>
+      Foo
+      Bar
+    </q></p>
+</p>
+<p>
+  <p><q a='2'>
+      Foo
+      Bar
+    </q></p>
+</p>
+<p>
+  <p><q>
+      Foo
+      Bar
+    </q></p>
+</p>
+<p>
+  <p><q a='2'>
+      Foo
+      Bar
+    </q></p>
+</p>
+<p>
+  <p>
+      foo<q>
+        Foo
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>
+        Foo
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q>Foo</q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>Foo</q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q>
+        Foo
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>
+        Foo
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q>Foo</q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>Foo</q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q>
+        Foo
+        Bar
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>
+        Foo
+        Bar
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q>
+        Foo
+        Bar
+      </q>bar
+  </p>
+</p>
+<p>
+  <p>
+      foo<q a='2'>
+        Foo
+        Bar
+      </q>bar
+  </p>
+</p>
+<p>
+  <p><q></q></p>
+</p>
+<p>
+  <p><q /></p>
+</p>
+<p>
+  <p><q a='2'></q></p>
+</p>
+<p>
+  <p><q a='2' /></p>
+</p>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/original_engine.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/original_engine.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/original_engine.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/original_engine.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+  <head>
+    <title>Stop. haml time</title>
+    <div id='content'>
+      <h1>This is a title!</h1>
+      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
+      <p class='foo'>Cigarettes!</p>
+      <h2>Man alive!</h2>
+      <ul class='things'>
+        <li>Slippers</li>
+        <li>Shoes</li>
+        <li>Bathrobe</li>
+        <li>Coffee</li>
+      </ul>
+      <pre>This is some text that's in a pre block!
+      Let's see what happens when it's rendered! What about now, since we're on a new line?</pre>
+    </div>
+  </head>
+</html>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partial_layout.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partial_layout.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partial_layout.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partial_layout.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,5 @@
+<h1>Partial layout used with for block:</h1>
+<div class='partial-layout'>
+  <h2>This is inside a partial layout</h2>
+  <p>Some content within a layout</p>
+</div>
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partials.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partials.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partials.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/partials.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,21 @@
+<p>
+  @foo =
+  value one
+</p>
+<p>
+  @foo =
+  value two
+</p>
+<p>
+  @foo =
+  value two
+</p>
+Toplevel? false
+<p>
+  @foo =
+  value three
+</p>
+<p>
+  @foo =
+  value three
+</p>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/render_layout.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/render_layout.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/render_layout.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/render_layout.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,3 @@
+Before
+During
+After

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/silent_script.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/silent_script.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/silent_script.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/silent_script.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,74 @@
+<div>
+  <h1>I can count!</h1>
+  1
+  2
+  3
+  4
+  5
+  6
+  7
+  8
+  9
+  10
+  11
+  12
+  13
+  14
+  15
+  16
+  17
+  18
+  19
+  20
+  <h1>I know my ABCs!</h1>
+  <ul>
+    <li>a</li>
+    <li>b</li>
+    <li>c</li>
+    <li>d</li>
+    <li>e</li>
+    <li>f</li>
+    <li>g</li>
+    <li>h</li>
+    <li>i</li>
+    <li>j</li>
+    <li>k</li>
+    <li>l</li>
+    <li>m</li>
+    <li>n</li>
+    <li>o</li>
+    <li>p</li>
+    <li>q</li>
+    <li>r</li>
+    <li>s</li>
+    <li>t</li>
+    <li>u</li>
+    <li>v</li>
+    <li>w</li>
+    <li>x</li>
+    <li>y</li>
+    <li>z</li>
+  </ul>
+  <h1>I can catch errors!</h1>
+  Oh no! "undefined method `silly' for String:Class" happened!
+  <p>
+    "false" is:
+    false
+  </p>
+  Even!
+  Odd!
+  Even!
+  Odd!
+  Even!
+</div>
+<div class='foo'>
+  <strong>foobar</strong>
+</div>
+<strong>0</strong>
+<strong>1</strong>
+<strong>2</strong>
+<strong>3</strong>
+<strong>4</strong>
+<div class='test'>
+  <p>boom</p>
+</div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/standard.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/standard.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/standard.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/standard.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,162 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html lang='en-US' xml:lang='en-US' xmlns='http://www.w3.org/1999/xhtml'>
+  <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>
+    0
+    1
+    2
+    3
+    4
+    5
+    6
+    7
+    8
+    9
+    10
+    11
+    12
+    13
+    14
+    15
+    16
+    17
+    18
+    19
+    20
+    21
+    22
+    23
+    24
+    25
+    26
+    27
+    28
+    29
+    30
+    31
+    32
+    33
+    34
+    35
+    36
+    37
+    38
+    39
+    40
+    41
+    42
+    43
+    44
+    45
+    46
+    47
+    48
+    49
+    50
+    51
+    52
+    53
+    54
+    55
+    56
+    57
+    58
+    59
+    60
+    61
+    62
+    63
+    64
+    65
+    66
+    67
+    68
+    69
+    70
+    71
+    72
+    73
+    74
+    75
+    76
+    77
+    78
+    79
+    80
+    81
+    82
+    83
+    84
+    85
+    86
+    87
+    88
+    89
+    90
+    91
+    92
+    93
+    94
+    95
+    96
+    97
+    98
+    99
+    100
+    101
+    102
+    103
+    104
+    105
+    106
+    107
+    108
+    109
+    110
+    111
+    112
+    113
+    114
+    115
+    116
+    117
+    118
+    119
+    Wow.|
+    <p>
+      Holy cow        multiline       tags!           A pipe (|) even!
+      PipesIgnored|PipesIgnored|PipesIgnored|
+      1|2|3
+    </p>
+    <div class='silent'>
+      this shouldn't evaluate but now it should!
+    </div>
+    <ul class='really cool'>
+      <li>a</li>
+      <li>b</li>
+      <li>c</li>
+      <li>d</li>
+      <li>e</li>
+      <li>f</li>
+    </ul>
+    <div class='of_divs_with_underscore' id='combo'>with this text</div>
+    foo
+    <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>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,23 @@
+<div class='tags'>
+  <foo>1</foo>
+  <FOO>2</FOO>
+  <fooBAR>3</fooBAR>
+  <fooBar>4</fooBar>
+  <foo_bar>5</foo_bar>
+  <foo-bar>6</foo-bar>
+  <foo:bar>7</foo:bar>
+  <foo class='bar'>8</foo>
+  <fooBAr_baz:boom_bar>9</fooBAr_baz:boom_bar>
+  <foo13>10</foo13>
+  <foo2u>11</foo2u>
+</div>
+<div class='classes'>
+  <p class='foo bar' id='boom'></p>
+  <div class='fooBar'>a</div>
+  <div class='foo-bar'>b</div>
+  <div class='foo_bar'>c</div>
+  <div class='FOOBAR'>d</div>
+  <div class='foo16'>e</div>
+  <div class='123'>f</div>
+  <div class='foo2u'>g</div>
+</div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/very_basic.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/very_basic.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/very_basic.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/very_basic.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,5 @@
+<!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>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,89 @@
+<div id='whitespace_test'>
+  <div class='text_area_test_area'>
+    <textarea>Oneline</textarea>
+  </div>
+  <textarea>BLAH
+  </textarea>
+  <div class='text_area_test_area'>
+    <textarea>Two&#x000A;lines</textarea>
+  </div>
+  <textarea>BLAH
+  </textarea>
+  <div class='text_area_test_area'>
+    <textarea>Oneline</textarea>
+  </div>
+  <textarea>BLAH</textarea>
+  <div class='text_area_test_area'>
+    <textarea>Two&#x000A;lines</textarea>
+  </div>
+  <textarea>BLAH</textarea>
+  <div id='flattened'>
+    <div class='text_area_test_area'>
+      <textarea>Two&#x000A;lines</textarea>
+    </div>
+    <textarea>BLAH</textarea>
+  </div>
+</div>
+<div class='hithere'>
+  Foo bar
+  <pre>foo bar</pre>
+  <pre>foo&#x000A;bar</pre>
+  <p><pre>foo&#x000A;bar</pre></p>
+  <p>
+    foo
+    bar
+  </p>
+</div>
+<div class='foo'>
+  13
+    <textarea>
+  a
+  </textarea>
+<textarea>&#x000A;a</textarea>
+</div>
+<div id='whitespace_test'>
+  <div class='text_area_test_area'>
+    <textarea>Oneline</textarea>
+  </div>
+  <textarea>BLAH
+  </textarea>
+  <div class='text_area_test_area'>
+    <textarea>Two&#x000A;lines</textarea>
+  </div>
+  <textarea>BLAH
+  </textarea>
+  <div class='text_area_test_area'>
+    <textarea>Oneline</textarea>
+  </div>
+  <textarea>BLAH</textarea>
+  <div class='text_area_test_area'>
+    <textarea>Two&#x000A;lines</textarea>
+  </div>
+  <textarea>BLAH</textarea>
+  <div id='flattened'>
+    <div class='text_area_test_area'>
+      <textarea>Two&#x000A;lines</textarea>
+    </div>
+    <textarea>BLAH</textarea>
+  </div>
+</div>
+<div class='hithere'>
+  Foo bar
+  <pre>foo bar</pre>
+  <pre>foo&#x000A;bar</pre>
+  <p><pre>foo&#x000A;bar</pre></p>
+  <p>
+    foo
+    bar
+  </p>
+  <pre>                                                 ___&#x000A;                                              ,o88888&#x000A;                                           ,o8888888'&#x000A;                     ,:o:o:oooo.        ,8O88Pd8888"&#x000A;                 ,.::.::o:ooooOoOoO. ,oO8O8Pd888'"&#x000A;               ,.:.::o:ooOoOoOO8O8OOo.8OOPd8O8O"&#x000A;              , ..:.::o:ooOoOOOO8OOOOo.FdO8O8"&#x000A;             , ..:.::o:ooOoOO8O888O8O,COCOO"&#x000A;            , . ..:.::o:ooOoOOOO8OOOOCOCO"&#x000A;             . ..:.::o:ooOoOoOO8O8OCCCC"o&#x000A;                . ..:.::o:ooooOoCoCCC"o:o&#x000A;                . ..:.::o:o:,cooooCo"oo:o:&#x000A;             `   . . ..:.:cocoooo"'o:o:::'&#x000A;             .`   . ..::ccccoc"'o:o:o:::'&#x000A;            :.:.    ,c:cccc"':.:.:.:.:.'&#x000A;          ..:.:"'`::::c:"'..:.:.:.:.:.'  http://www.chris.com/ASCII/&#x000A;        ...:.'.:.::::"'    . . . . .'&#x000A;       .. . ....:."' `   .  . . ''&#x000A;     . . . .
 ..."'&#x000A;     .. . ."'     -hrr-&#x000A;    .&#x000A;&#x000A;&#x000A;                                              It's a planet!&#x000A;%strong This shouldn't be bold!</pre>
+  <strong>This should!</strong>
+  <textarea>      ___           ___           ___           ___ &#x000A;     /\__\         /\  \         /\__\         /\__\&#x000A;    /:/  /        /::\  \       /::|  |       /:/  /&#x000A;   /:/__/        /:/\:\  \     /:|:|  |      /:/  / &#x000A;  /::\  \ ___   /::\~\:\  \   /:/|:|__|__   /:/  /  &#x000A; /:/\:\  /\__\ /:/\:\ \:\__\ /:/ |::::\__\ /:/__/   &#x000A; \/__\:\/:/  / \/__\:\/:/  / \/__/~~/:/  / \:\  \   &#x000A;      \::/  /       \::/  /        /:/  /   \:\  \  &#x000A;      /:/  /        /:/  /        /:/  /     \:\  \ &#x000A;     /:/  /        /:/  /        /:/  /       \:\__\&#x000A;     \/__/         \/__/         \/__/         \/__/&#x000A;     &#x000A;     Many&#x000A;                   thanks&#x000A;           to&#x000A;                                http://www.network-science.de/ascii/
+  <strong>indeed!</strong></textarea>
+</div>
+<div class='foo'>
+  13
+</div>
+<pre>       __     ______        __               ______&#x000A;.----.|  |--.|__    |.----.|  |--..--------.|  __  |&#x000A;|  __||     ||__    ||  __||    < |        ||  __  |&#x000A;|____||__|__||______||____||__|__||__|__|__||______|</pre>
+<pre>foo
+bar</pre>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_1.rhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,12 @@
+<h2>This is a pretty complicated partial</h2>
+<div class="partial">
+  <p>It has several nested partials,</p>
+  <ul>
+    <% 5.times do %>
+      <li>
+        <strong>Partial:</strong>
+        <% @nesting = 5 %>
+        <%= render :partial => 'haml/rhtml/av_partial_2' %>
+    <% end %>
+  </ul>
+</div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/_av_partial_2.rhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,8 @@
+<% @nesting -= 1 %>
+<div class="partial" level="<%= @nesting %>">
+  <h3>This is a crazy deep-nested partial.</h3>
+  <p>Nesting level <%= @nesting %></p>
+  <% if @nesting > 0 %>
+    <%= render :partial => 'haml/rhtml/av_partial_2' %>
+  <% end %>
+</div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/action_view.rhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,62 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml' 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>
+    <h1>
+      This is very much like the standard template,
+      except that it has some ActionView-specific stuff.
+      It's only used for benchmarking.
+    </h1>
+    <div class="crazy_partials">
+      <%= render :partial => 'haml/rhtml/av_partial_1' %>
+    </div>
+    <!-- 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!
+      <%= 1 + 9 + 8 + 2 %>
+      <%# numbers should work and this should be ignored %>
+    </div>
+    <% 120.times do |number| -%>
+      <%= number %>
+    <% end -%>
+    <div id='body'><%= " Quotes should be loved! Just like people!" %></div>
+    Wow.
+    <p>
+      <%= "Holy cow        " +
+          "multiline       " +
+          "tags!           " +
+          "A pipe (|) even!"  %>
+      <%= [1, 2, 3].collect { |n| "PipesIgnored|" } %>
+      <%= [1, 2, 3].collect { |n|
+          n.to_s
+        }.join("|") %>
+    </p>
+    <div class='silent'>
+      <% foo = String.new
+         foo << "this"
+         foo << " shouldn't"
+         foo << " evaluate" %>
+      <%= foo + "but now it should!" %>
+      <%# Woah crap a comment! %>
+    </div>
+    <ul class='really cool'>
+      <% ('a'..'f').each do |a|%>
+      <li><%= a %>
+      <% end %>
+    <div class='of_divs_with_underscore' id='combo'><%= @should_eval = "with this text" %></div>
+    <%= [ 104, 101, 108, 108, 111 ].map do |byte|
+      byte.chr
+    end %>
+    <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.\n" + 
+"        So, I'm just making it *really* long. God, I hope this works" %>
+      </strong>
+    </div>
+  </body>
+</html>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/standard.rhtml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/standard.rhtml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/standard.rhtml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/rhtml/standard.rhtml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,54 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-US' 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!
+      <%= 1 + 9 + 8 + 2 %>
+      <%# numbers should work and this should be ignored %>
+    </div>
+    <% 120.times do |number| -%>
+      <%= number %>
+    <% end -%>
+    <div id='body'><%= " Quotes should be loved! Just like people!" %></div>
+    Wow.
+    <p>
+      <%= "Holy cow        " +
+          "multiline       " +
+          "tags!           " +
+          "A pipe (|) even!"  %>
+      <%= [1, 2, 3].collect { |n| "PipesIgnored|" }.join %>
+      <%= [1, 2, 3].collect { |n|
+          n.to_s
+        }.join("|") %>
+    </p>
+    <div class='silent'>
+      <% foo = String.new
+         foo << "this"
+         foo << " shouldn't"
+         foo << " evaluate" %>
+      <%= foo + "but now it should!" %>
+      <%# Woah crap a comment! %>
+    </div>
+    <ul class='really cool'>
+      <% ('a'..'f').each do |a|%>
+      <li><%= a %></li>
+      <% end %>
+    <div class='of_divs_with_underscore' id='combo'><%= @should_eval = "with this text" %></div>
+    <%= "foo".each_line do |line|
+      nil
+    end %>
+    <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.\n" + 
+"        So, I'm just making it *really* long. God, I hope this works" %>
+      </strong>
+    </div>
+  </body>
+</html>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/template_test.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/template_test.rb?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/template_test.rb (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/template_test.rb Thu Jul  8 23:14:13 2010
@@ -0,0 +1,217 @@
+#!/usr/bin/env ruby
+require File.dirname(__FILE__) + '/../test_helper'
+require 'haml/template'
+require 'sass/plugin'
+require File.dirname(__FILE__) + '/mocks/article'
+
+require 'action_pack/version'
+
+module Haml::Filters::Test
+  include Haml::Filters::Base
+
+  def render(text)
+    "TESTING HAHAHAHA!"
+  end
+end
+
+module Haml::Helpers
+  def test_partial(name, locals = {})
+    Haml::Engine.new(File.read(File.join(TemplateTest::TEMPLATE_PATH, "_#{name}.haml"))).render(self, locals)
+  end
+end
+
+class Egocentic
+  def method_missing(*args)
+    self
+  end
+end
+
+class DummyController
+  attr_accessor :logger
+  def initialize
+    @logger = Egocentic.new
+  end
+    
+  def self.controller_path
+    ''
+  end
+
+  def controller_path
+    ''
+  end
+end
+
+class TemplateTest < Test::Unit::TestCase
+  TEMPLATE_PATH = File.join(File.dirname(__FILE__), "templates")
+  TEMPLATES = %w{         very_basic        standard    helpers
+    whitespace_handling   original_engine   list        helpful
+    silent_script         tag_parsing       just_stuff  partials
+    filters               nuke_outer_whitespace         nuke_inner_whitespace
+    render_layout }
+  # partial layouts were introduced in 2.0.0
+  TEMPLATES << 'partial_layout' unless ActionPack::VERSION::MAJOR < 2
+
+  def setup
+    @base = create_base
+
+    # filters template uses :sass
+    Sass::Plugin.options.update(:line_comments => true, :style => :compact)
+  end
+
+  def create_base
+    vars = { 'article' => Article.new, 'foo' => 'value one' }
+    
+    unless Haml::Util.has?(:instance_method, ActionView::Base, :finder)
+      base = ActionView::Base.new(TEMPLATE_PATH, vars)
+    else
+      # Rails 2.1.0
+      base = ActionView::Base.new([], vars)
+      base.finder.append_view_path(TEMPLATE_PATH)
+    end
+    
+    if Haml::Util.has?(:private_method, base, :evaluate_assigns)
+      base.send(:evaluate_assigns)
+    else
+      # Rails 2.2
+      base.send(:_evaluate_assigns_and_ivars)
+    end
+
+    # This is used by form_for.
+    # It's usually provided by ActionController::Base.
+    def base.protect_against_forgery?; false; end
+
+    base.controller = DummyController.new
+    base
+  end
+
+  def render(text)
+    Haml::Engine.new(text).to_html(@base)
+  end
+
+  def load_result(name)
+    @result = ''
+    File.new(File.dirname(__FILE__) + "/results/#{name}.xhtml").each_line { |l| @result += l }
+    @result
+  end
+
+  def assert_renders_correctly(name, &render_method)
+    if ActionPack::VERSION::MAJOR < 2 ||
+        (ActionPack::VERSION::MAJOR == 2 && ActionPack::VERSION::MINOR < 2)
+      render_method ||= proc { |name| @base.render(name) }
+    else
+      render_method ||= proc { |name| @base.render(:file => name) }
+    end
+
+    load_result(name).split("\n").zip(render_method[name].split("\n")).each_with_index do |pair, line|
+      message = "template: #{name}\nline:     #{line}"
+      assert_equal(pair.first, pair.last, message)
+    end
+  rescue ActionView::TemplateError => e
+    if e.message =~ /Can't run [\w:]+ filter; required (one of|file) ((?:'\w+'(?: or )?)+)(, but none were found| not found)/
+      puts "\nCouldn't require #{$2}; skipping a test."
+    else
+      raise e
+    end
+  end
+
+  def test_empty_render_should_remain_empty
+    assert_equal('', render(''))
+  end
+
+  TEMPLATES.each do |template|
+    define_method "test_template_should_render_correctly [template: #{template}] " do
+      assert_renders_correctly template
+    end
+  end
+
+  def test_templates_should_render_correctly_with_render_proc
+    assert_renders_correctly("standard") do |name|
+      engine = Haml::Engine.new(File.read(File.dirname(__FILE__) + "/templates/#{name}.haml"))
+      engine.render_proc(@base).call
+    end
+  end
+  
+  def test_templates_should_render_correctly_with_def_method
+    assert_renders_correctly("standard") do |name|
+      engine = Haml::Engine.new(File.read(File.dirname(__FILE__) + "/templates/#{name}.haml"))
+      engine.def_method(@base, "render_standard")
+      @base.render_standard
+    end
+  end
+
+  def test_action_view_templates_render_correctly
+    proc = lambda do
+      @base.content_for(:layout) {'Lorem ipsum dolor sit amet'}
+      assert_renders_correctly 'content_for_layout'
+    end
+
+    if @base.respond_to?(:with_output_buffer)
+      @base.with_output_buffer("", &proc)
+    else
+      proc.call
+    end
+  end
+
+  def test_instance_variables_should_work_inside_templates
+    @base.instance_variable_set("@content_for_layout", 'something')
+    assert_equal("<p>something</p>", render("%p= @content_for_layout").chomp)
+
+    @base.instance_eval("@author = 'Hampton Catlin'")
+    assert_equal("<div class='author'>Hampton Catlin</div>", render(".author= @author").chomp)
+
+    @base.instance_eval("@author = 'Hampton'")
+    assert_equal("Hampton", render("= @author").chomp)
+
+    @base.instance_eval("@author = 'Catlin'")
+    assert_equal("Catlin", render("= @author").chomp)
+  end
+
+  def test_instance_variables_should_work_inside_attributes
+    @base.instance_eval("@author = 'hcatlin'")
+    assert_equal("<p class='hcatlin'>foo</p>", render("%p{:class => @author} foo").chomp)
+  end
+
+  def test_template_renders_should_eval
+    assert_equal("2\n", render("= 1+1"))
+  end
+
+  def test_haml_options
+    Haml::Template.options = { :suppress_eval => true }
+    assert_equal({ :suppress_eval => true }, Haml::Template.options)
+    old_base, @base = @base, create_base
+    assert_renders_correctly("eval_suppressed")
+    @base = old_base
+    Haml::Template.options = {}
+  end
+
+  def test_exceptions_should_work_correctly
+    begin
+      render("- raise 'oops!'")
+    rescue Exception => e
+      assert_equal("oops!", e.message)
+      assert_match(/^\(haml\):1/, e.backtrace[0])
+    else
+      assert false
+    end
+
+    template = <<END
+%p
+  %h1 Hello!
+  = "lots of lines"
+  = "even more!"
+  - raise 'oh no!'
+  %p
+    this is after the exception
+    %strong yes it is!
+ho ho ho.
+END
+
+    begin
+      render(template.chomp)
+    rescue Exception => e
+      assert_match(/^\(haml\):5/, e.backtrace[0])
+    else
+      assert false
+    end
+  end  
+end

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml Thu Jul  8 23:14:13 2010
@@ -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'
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml Thu Jul  8 23:14:13 2010
@@ -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'
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml Thu Jul  8 23:14:13 2010
@@ -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' if @nesting > 0
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml Thu Jul  8 23:14:13 2010
@@ -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
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout.erb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout.erb?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout.erb (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout.erb Thu Jul  8 23:14:13 2010
@@ -0,0 +1,3 @@
+Before
+<%= yield -%>
+After

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,3 @@
+.partial-layout
+  %h2 This is inside a partial layout
+  = yield
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_partial.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_partial.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_partial.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_partial.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,8 @@
+%p
+  @foo = 
+  = @foo
+- @foo = 'value three'
+== Toplevel? #{haml_buffer.toplevel?}
+%p
+  @foo = 
+  = @foo

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_text_area.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_text_area.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_text_area.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/_text_area.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,3 @@
+.text_area_test_area
+  ~ "<textarea>" + value + "</textarea>"
+= "<textarea>BLAH\n</textarea>"

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view.haml Thu Jul  8 23:14:13 2010
@@ -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'
+    / 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"

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml Thu Jul  8 23:14:13 2010
@@ -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"

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/breakage.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/breakage.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/breakage.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/breakage.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,8 @@
+%p
+  %h1 Hello!
+  = "lots of lines"
+  - raise "Oh no!"
+  %p
+    this is after the exception
+    %strong yes it is!
+ho ho ho.

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/content_for_layout.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/content_for_layout.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/content_for_layout.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/content_for_layout.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,8 @@
+!!!
+%html
+  %head
+  %body
+    #yieldy
+      = yield :layout
+    #nosym
+      = yield

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,11 @@
+= "not me!"
+= "nor me!"
+- haml_concat "not even me!"
+%p= "NO!"
+%p~ "UH-UH!"
+%h1 Me!
+#foo
+  %p#bar All
+  %br/
+  %p.baz This
+  Should render

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/filters.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/filters.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/filters.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/filters.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,66 @@
+%style
+  - width = 5 + 17
+  :sass
+    p
+      :border
+        :style dotted
+        :width #{width}px
+        :color #ff00ff
+    h1
+      :font-weight normal
+
+:test
+  This
+  Should
+  Not
+  Print
+
+%p
+  :javascript
+    function newline(str) {
+      return "\n" + str;
+    }
+
+:plain
+  This
+    Is
+      Plain
+        Text
+          %strong right?
+   \#{not interpolated}
+   \\#{1 + 2}
+   \\\#{also not}
+   \\
+
+- last = "noitalo"
+%p
+  %pre
+    :preserve
+      This pre is pretty deeply
+            nested.
+         Does #{"interp" + last.reverse} work?
+    :preserve
+        This one is, too.
+      Nested, that is.
+
+- num = 10
+%ul
+  :erb
+    <% num.times do |c| %>
+      <li><%= (c+97).chr %></li>
+    <% end %>
+    <% res = 178 %>
+
+.res= res
+
+= "Text!"
+
+- var = "Hello"
+:ruby
+  printf "%s, World!\n", var
+  print "How are you doing today?\n"
+
+:escaped
+  <div class="foo">
+    <p>I think &mdash; or do I?</p>
+  </div>

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpers.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpers.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpers.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpers.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,95 @@
+= h("&&&&&&&&&&&") # This is an ActionView Helper... should load
+- foo = capture do # This ActionView Helper is designed for ERB, but should work with haml
+  %div
+    %p.title Title
+    %p.text
+      Woah this is really crazy
+      I mean wow,
+      man.
+- 3.times do
+  = foo
+%p foo
+- tab_up
+%p reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally loooooooooooooooooong
+- tab_down
+.woah
+  #funky
+    = capture_haml do
+      %div
+        %h1 Big!
+        %p Small
+        / Invisible
+    = capture do
+      .dilly
+        %p foo
+        %h1 bar
+  = surround '(', ')' do
+    %strong parentheses!
+= precede '*' do
+  %span.small Not really
+click
+= succeed '.' do
+  %a{:href=>"thing"} here
+%p baz
+- haml_buffer.tabulation = 10
+%p boom
+- concat "foo\n"
+- haml_buffer.tabulation = 0
+-#
+-# ActionPack pre-2.0 has weird url_for issues here.
+- if ActionPack::VERSION::MAJOR < 2
+  :plain
+    <p>
+      <form action="" method="post">
+    </p>
+    <div>
+      <form action="" method="post">
+        <div><input name="commit" type="submit" value="save" /></div>
+        <p>
+          @foo =
+          value one
+        </p>
+        Toplevel? false
+        <p>
+          @foo =
+          value three
+        </p>
+      </form>
+      <form action="" method="post">
+        Title:
+        <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
+        Body:
+        <input id="article_body" name="article[body]" size="30" type="text" value="World" />
+      </form>
+    </div>
+- else
+  %p
+    = form_tag ''
+  %div
+    - form_tag '' do
+      %div= submit_tag 'save'
+      - @foo = 'value one'
+      = test_partial 'partial'
+    - form_for :article, @article, :url => '' do |f|
+      Title:
+      = f.text_field :title
+      Body:
+      = f.text_field :body
+= list_of({:google => 'http://www.google.com'}) do |name, link|
+  %a{ :href => link }= name
+%p
+  - haml_concat "foo"
+  %div
+    - haml_concat "bar"
+  - haml_concat "boom"
+  baz
+  - haml_concat "boom, again"
+- haml_tag :table do
+  - haml_tag :tr do
+    - haml_tag :td, {:class => 'cell'} do
+      - haml_tag :strong, "strong!"
+      - haml_concat "data"
+    - haml_tag :td do
+      - haml_concat "more_data"
+- haml_tag :hr
+- haml_tag :div, ''

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpful.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpful.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpful.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/helpful.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,11 @@
+%div[@article]
+  %h1= @article.title
+  %div= @article.body
+#id[@article] id
+.class[@article] class
+#id.class[@article] id class
+%div{:class => "article full"}[@article]= "boo"
+%div{'class' => "article full"}[@article]= "moo"
+%div.articleFull[@article]= "foo"
+%span[@not_a_real_variable_and_will_be_nil]
+  Boo

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/just_stuff.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/just_stuff.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/just_stuff.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/just_stuff.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,83 @@
+!!! XML
+!!! XML ISO-8859-1
+!!! XML UtF-8 Foo bar
+!!!
+!!! 1.1
+!!! 1.1 Strict
+!!! Strict foo bar
+!!! FRAMESET
+%strong{:apos => "Foo's bar!"} Boo!
+== Embedded? false!
+== Embedded? #{true}!
+- embedded = true
+== Embedded? #{embedded}!
+== Embedded? #{"twice! #{true}"}!
+== Embedded? #{"one"} af"t"er #{"another"}!
+%p== Embedded? false!
+%p== Embedded? #{true}!
+- embedded = true
+%p== Embedded? #{embedded}!
+%p== Embedded? #{"twice! #{true}"}!
+%p== Embedded? #{"one"} af"t"er #{"another"}!
+= "stuff followed by whitespace"
+  
+- if true
+
+  %strong block with whitespace
+%p
+  \Escape
+  \- character
+  \%p foo
+  \yee\ha
+/ Short comment
+/
+  This is a block comment
+  cool, huh?
+  %strong there can even be sub-tags!
+  = "Or script!"
+-# Haml comment
+-#
+  Nested Haml comment
+  - raise 'dead'
+%p{ :class => "" } class attribute should appear!
+%p{ :gorbachev => nil } this attribute shouldn't appear
+/[if lte IE6] conditional comment!
+/[if gte IE7]
+  %p Block conditional comment
+  %div
+    %h1 Cool, eh?
+/[if gte IE5.2]
+  Woah a period.
+= "test" |
+  "test" |
+-# Hard tabs shouldn't throw errors.
+	
+- case :foo
+- when :bar
+  %br Blah
+- when :foo
+  %br
+- case :foo
+  - when :bar
+    %meta{ :foo => 'blah'}
+  - when :foo
+    %meta{ :foo => 'bar'}
+%img
+%hr
+%link
+%script Inline content
+%br
+  Nested content
+%p.foo{:class => true ? 'bar' : 'baz'}[@article] Blah
+%p.foo{:class => false ? 'bar' : ''}[@article] Blah
+%p.qux{:class => 'quux'}[@article] Blump
+== #{"Woah inner quotes"}
+%p.dynamic_quote{:quotes => "single '", :dyn => 1 + 2}
+%p.dynamic_self_closing{:dyn => 1 + 2}/
+%body
+  :plain
+    hello
+  %div
+
+    %img
+

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/list.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/list.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/list.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/list.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,12 @@
+!Not a Doctype!
+%ul
+  %li a
+  %li b
+  %li c
+  %li d
+  %li e
+  %li f
+  %li g
+  %li h
+  %li i
+

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,32 @@
+%p
+  %q< Foo
+%p
+  %q{:a => 1 + 1}< Foo
+%p
+  %q<= "Foo\nBar"
+%p
+  %q{:a => 1 + 1}<= "Foo\nBar"
+%p
+  %q<
+    Foo
+    Bar
+%p
+  %q{:a => 1 + 1}<
+    Foo
+    Bar
+%p
+  %q<
+    %div
+      Foo
+      Bar
+%p
+  %q{:a => 1 + 1}<
+    %div
+      Foo
+      Bar
+
+-# Regression test
+%p
+  %q<= "foo"
+  %q{:a => 1 + 1}
+    bar

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,144 @@
+%p
+  %p
+    %q>
+      Foo
+%p
+  %p
+    %q{:a => 1 + 1}>
+      Foo
+%p
+  %p
+    %q> Foo
+%p
+  %p
+    %q{:a => 1 + 1}> Foo
+%p
+  %p
+    %q>
+      = "Foo"
+%p
+  %p
+    %q{:a => 1 + 1}>
+      = "Foo"
+%p
+  %p
+    %q>= "Foo"
+%p
+  %p
+    %q{:a => 1 + 1}>= "Foo"
+%p
+  %p
+    %q>
+      = "Foo\nBar"
+%p
+  %p
+    %q{:a => 1 + 1}>
+      = "Foo\nBar"
+%p
+  %p
+    %q>= "Foo\nBar"
+%p
+  %p
+    %q{:a => 1 + 1}>= "Foo\nBar"
+%p
+  %p
+    - tab_up
+    foo
+    %q>
+      Foo
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}>
+      Foo
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q> Foo
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}> Foo
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q>
+      = "Foo"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}>
+      = "Foo"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q>= "Foo"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}>= "Foo"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q>
+      = "Foo\nBar"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}>
+      = "Foo\nBar"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q>= "Foo\nBar"
+    bar
+    - tab_down
+%p
+  %p
+    - tab_up
+    foo
+    %q{:a => 1 + 1}>= "Foo\nBar"
+    bar
+    - tab_down
+%p
+  %p
+    %q>
+%p
+  %p
+    %q>/
+%p
+  %p
+    %q{:a => 1 + 1}>
+%p
+  %p
+    %q{:a => 1 + 1}>/

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/original_engine.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/original_engine.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/original_engine.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/original_engine.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,17 @@
+!!!
+%html
+  %head
+    %title Stop. haml time
+    #content
+      %h1 This is a title!
+      %p Lorem ipsum dolor sit amet, consectetur adipisicing elit
+      %p{:class => 'foo'} Cigarettes!
+      %h2 Man alive!
+      %ul.things
+        %li Slippers
+        %li Shoes
+        %li Bathrobe
+        %li Coffee
+      %pre
+        This is some text that's in a pre block!
+        Let's see what happens when it's rendered! What about now, since we're on a new line?

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partial_layout.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partial_layout.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partial_layout.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partial_layout.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,3 @@
+%h1 Partial layout used with for block:
+- render :layout => 'layout_for_partial.haml' do
+  %p Some content within a layout
\ No newline at end of file

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partialize.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partialize.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partialize.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partialize.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1 @@
+= render :file => "#{name}.haml"

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partials.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partials.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partials.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/partials.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,12 @@
+- @foo = 'value one'
+%p
+  @foo = 
+  = @foo
+- @foo = 'value two'
+%p
+  @foo = 
+  = @foo
+= test_partial "partial"
+%p
+  @foo = 
+  = @foo

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/render_layout.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/render_layout.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/render_layout.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/render_layout.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,2 @@
+= render :layout => 'layout' do
+  During

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/silent_script.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/silent_script.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/silent_script.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/silent_script.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,40 @@
+%div
+  %h1 I can count!
+  - (1..20).each do |i|
+    = i
+  %h1 I know my ABCs!
+  %ul
+    - ('a'..'z').each do |i|
+      %li= i
+  %h1 I can catch errors!
+  - begin
+    - String.silly
+  - rescue NameError => e
+    = "Oh no! \"#{e}\" happened!"
+  %p
+    "false" is:
+    - if false
+      = "true"
+    - else
+      = "false"
+  - if true
+    - 5.times do |i|
+      - if i % 2 == 1
+        Odd!
+      - else
+        Even!
+  - else
+    = "This can't happen!"
+- 13 |
+.foo
+  %strong foobar
+- 5.times   |
+    do      |
+      |a|   |
+  %strong= a
+.test
+  - "foo  |
+     bar  |
+     baz" |
+    
+  %p boom

Added: incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/standard.haml
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/standard.haml?rev=961978&view=auto
==============================================================================
--- incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/standard.haml (added)
+++ incubator/deltacloud/trunk/framework/vendor/plugins/haml/test/haml/templates/standard.haml Thu Jul  8 23:14:13 2010
@@ -0,0 +1,42 @@
+!!!
+%html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en-US", "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!"
+    - 120.times do |number|
+      = number
+    Wow.|
+    %p
+      = "Holy cow        " + |
+        "multiline       " + |      
+        "tags!           " + |
+        "A pipe (|) even!"   |
+      = [1, 2, 3].collect { |n| "PipesIgnored|" }.join
+      = [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"
+    = "foo".each_line do |line|
+      - nil
+    .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"



Mime
View raw message