Closed rodion-k closed 6 years ago
Infact, - "#{}"
is not a valid pug code: an interpolation should not be empty, and if it's not an interpolation, you must escape it:
- $a = "\#{}"
=$a
I thought interpolation shouldn't work in code. Seems in pugjs it does not work
-
var name = 'value';
var a = '#{name}';
= a
gives #{name}
Yes, it's what we discussed with @TorbenKoehn I try to know why the engine do so and if it's a regression.
Hi @rodion-k please run composer update
and tell me if it fixes your problem. Now code elements are no longer considered as interpolable.
Hello,
This code throws exception
Thanks!