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