Sha256: 93a0714e66c5b0c44706c100e4f8890d6794c0b8969b8bae25920e2532e27747

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

--HAML--
%input(type="submit" value=foo().bar)
%input(type="submit" value=foo{}.bar)
%input(type="submit" value=(foo ? bar : baz))
%input(type="submit" value=(foo or bar ? bar('foo\\bar\'bar') : baz('')))
%a(href="#" class=["foo", "bar", true ? "baz" : null])
%a{:href => "#", :class => ["foo", "bar", true ? "baz" : null]}
--EXPECT--
root(
  tag(input
    attr(text(type)interpolated(text(submit)))
    attr(text(value)insert(foo().bar))
  )
  tag(input
    attr(text(type)interpolated(text(submit)))
    attr(text(value)insert(foo{}.bar))
  )
  tag(input
    attr(text(type)interpolated(text(submit)))
    attr(text(value)insert((foo ? bar : baz)))
  )
  tag(input
    attr(text(type)interpolated(text(submit)))
    attr(text(value)insert((foo or bar ? bar('foo\\bar\'bar') : baz(''))))
  )
  tag(a
    attr(text(href)interpolated(text(#)))
    attr(text(class)insert(["foo", "bar", true ? "baz" : null]))
  )
  tag(a
    attr(text(href)interpolated(text(#)))
    attr(text(class)insert(["foo", "bar", true ? "baz" : null]))
  )
)

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_002.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test