Sha256: d5549752c4858fdae0bbcbf59190c438b38e51e5da533f3b5850d24481351f0a

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 KB

Contents

!!! 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"}!
.render= render :inline => "%em= 'wow!'", :type => :haml
= "stuff followed by whitespace"
  
- if true

  %strong block with whitespace
%p
  \Escape
  \- character
  \%p foo
  \yee\ha
/ Short comment
/ This is a really long comment look how long it is it should be on a line of its own don't you think?
/
  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_atomic{:dyn => 1 + 2}/

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
haml-1.8.0 test/haml/templates/just_stuff.haml
haml-1.8.1 test/haml/templates/just_stuff.haml
haml-1.8.2 test/haml/templates/just_stuff.haml