Sha256: edd76ea8762ab6f9361ca34627dd1d1f2630284680f3949e7ebdcd01121db52a

Contents?: true

Size: 1.22 KB

Versions: 10

Compression:

Stored size: 1.22 KB

Contents

--HAML--
%html#id.class1.class2{:foo => "bar"}(bar="baz")
%html(xml:lang="en")
%p{"foo" => "test #{a + b / c({# + 3 + "" + ''}) } bar #{"baz"} \" ", ("a" + "bc") => "d=>f", :z => {x} }
%p(abc="def" ghi=jkl mn=o+p q=(r=s) tuv="wx(y+z)")
%p(abc="" ghi=j+""+'')
%p{"fooo" => "bar",
            "bar" => "baz"} content
--EXPECT--
root(
  tag(html
    attr(text(id)text(id))
    attr(text(class)text(class1))
    attr(text(class)text(class2))
    attr(text(foo)interpolated(text(bar)))
    attr(text(bar)interpolated(text(baz)))
  )
  tag(html
    attr(text(xml:lang)interpolated(text(en)))
  )
  tag(p
    attr(interpolated(text(foo))interpolated(text(test )insert(a + b / c({# + 3 + "" + ''}) )text( bar )insert("baz")text( " )))
    attr(insert(("a" + "bc"))interpolated(text(d=>f)))
    attr(text(z)insert({x}))
  )
  tag(p
    attr(text(abc)interpolated(text(def)))
    attr(text(ghi)insert(jkl))
    attr(text(mn)insert(o+p))
    attr(text(q)insert((r=s)))
    attr(text(tuv)interpolated(text(wx(y+z))))
  )
  tag(p
    attr(text(abc)interpolated(text()))
    attr(text(ghi)insert(j+""+''))
  )
  tag(p interpolated(text(content))
    attr(interpolated(text(fooo))interpolated(text(bar)))
    attr(interpolated(text(bar))interpolated(text(baz)))
  )
)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test