patternengine-php-twig icon indicating copy to clipboard operation
patternengine-php-twig copied to clipboard

Attributes in macros are double quoted

Open mortona42 opened this issue 7 years ago • 0 comments

  • this is using aleksip/plugin-data-transform for attributes

This is working fine in a pattern: <div {{ attributes.addClass('test') }}>test</div> <div class="test">test</div>

But if this is inside a macro, I get: <div class=""test"">test</div>

I can work around this by including the macro file like another pattern.

mortona42 avatar Jan 15 '19 16:01 mortona42