latte-tools icon indicating copy to clipboard operation
latte-tools copied to clipboard

twig2latte - attribute function not working

Open lubomirblazekcz opened this issue 4 years ago • 0 comments

I found out a little problem with twig2latte conversion

.twig

{{ attribute(assets.js, 'es-module-shims') }}

.latte (incorrect with twig2latte), doesn't work with latte

{$assets->js->es-module-shims}

.latte (correct syntax, works with latte)

{$assets->js->{'es-module-shims'}}

lubomirblazekcz avatar Jul 08 '21 11:07 lubomirblazekcz