aleksip / plugin-data-transform

Data Transform Plugin for Pattern Lab PHP
GNU General Public License v2.0
34 stars 10 forks source link

Attributes in macros are double quoted #20

Open mortona42 opened 5 years ago

mortona42 commented 5 years ago

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 commented 5 years ago

I have twigAutoescape: false as per #18.

aleksip commented 5 years ago

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