Sha256: 8a26c7a2e6debc240bc6c5a7fdb160c88f58b0eac289cf2553d7de88e2cc029d

Contents?: true

Size: 544 Bytes

Versions: 10

Compression:

Stored size: 544 Bytes

Contents

--HAML--

.foo.bar.baz

#id.foo.bar{"class" => "abc #{def}", "id" => "x"}

%p{:a => "b", :a => "c"}

--FILE--
$visitor = new \MtHaml\NodeVisitor\MergeAttrs;
$node->accept($visitor);
--EXPECT--
root(
  tag(div
    attr(text(class)interpolated(text(foo)text( )text(bar)text( )text(baz)))
  )
  tag(div
    attr(text(class)interpolated(text(foo)text( )text(bar)))
    attr(interpolated(text(class))interpolated(text(abc )insert(def)))
    attr(interpolated(text(id))interpolated(text(x)))
  )
  tag(p
    attr(text(a)interpolated(text(c)))
  )
)

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