Sha256: 35f57a89e8702763f17485a00bc57a75c9fefdc4cb3646c14f201603e9b84ed8

Contents?: true

Size: 1.02 KB

Versions: 10

Compression:

Stored size: 1.02 KB

Contents

--HAML--
%p This is #{quality} cake!
%p "This is the #{quality} cake!"
%p= "This is the #{quality} cake!"
%html(foo="bar #{test}" bar="baz \#{no}")
%p
  Look at \\#{word} lack of backslash: \#{foo}
  And yon presence thereof: \{foo}
  Test \\\#{test}
:javascript
  $(document).ready(function() {
    alert(#{message.to_json});
  });

--EXPECT--
root(
  tag(p interpolated(text(This is )insert(quality)text( cake!)))
  tag(p interpolated(text("This is the )insert(quality)text( cake!")))
  tag(p insert("This is the #{quality} cake!"))
  tag(html
    attr(text(foo)interpolated(text(bar )insert(test)))
    attr(text(bar)interpolated(text(baz #{no})))
  )
  tag(p
    interpolated(text(Look at \\)insert(word)text( lack of backslash: #{foo}))
    interpolated(text(And yon presence thereof: \{foo}))
    interpolated(text(Test \\#{test}))
  )
  filter(javascript
    interpolated(text($(document).ready(function() {))
    interpolated(text(  alert()insert(message.to_json)text();))
    interpolated(text(});))
    interpolated(text())
  )
)

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