plugin-data-transform icon indicating copy to clipboard operation
plugin-data-transform copied to clipboard

Attributes in macros are double quoted

Open mortona42 opened this issue 7 years ago • 2 comments

This is cross-posted at pattern-lab/patternengine-php-twig.

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

I have twigAutoescape: false as per #18.

mortona42 avatar Jan 15 '19 16:01 mortona42

Thanks for the bug report! Will look into this as soon as I find some time.

aleksip avatar Jan 29 '19 13:01 aleksip