Sha256: 68061c4f566469edd4790c2d5f02aa0c6ff477814b8bc173a0b34f8adcc3d562

Contents?: true

Size: 412 Bytes

Versions: 10

Compression:

Stored size: 412 Bytes

Contents

--HAML--
%html
  %head
    %title
    %link
  %body
    %link foo
    %link
      bar
    %br
--FILE--
$visitor = new \MtHaml\NodeVisitor\Autoclose(array('br', 'link'));
$node->accept($visitor);
--EXPECT--
root(
  tag(html
    tag(head
      tag(title)
      tag(link/)
    )
    tag(body
      tag(link interpolated(text(foo)))
      tag(link
        interpolated(text(bar))
      )
      tag(br/)
    )
  )
)

Version data entries

10 entries across 10 versions & 1 rubygems

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