Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes in macros are double quoted #20

Open
mortona42 opened this issue Jan 15, 2019 · 2 comments
Open

Attributes in macros are double quoted #20

mortona42 opened this issue Jan 15, 2019 · 2 comments

Comments

@mortona42
Copy link

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
Copy link
Author

mortona42 commented Jan 15, 2019

I have twigAutoescape: false as per #18.

@aleksip
Copy link
Owner

aleksip commented Jan 29, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants