Open Edo78 opened 8 years ago
The expression inside the src
attribute is not being transpiled correctly.
Looks like a bug. @ivankravchenko, do you concur?
Sounds like original Jade code should look like:
each related in ['a', 'b']
img(class="bottle_#{related}.jpg", src="bottle_#{related}.jpg")
Is it processed with original Jade correctly?
Anyway, jade2php
should not generate incorrect output, so it's a bug.
using "string #{variable}" syntax solve my problem
Hi, maybe I'm doing something wrong but if I try to compile this
I get
As you can see
class
andsrc
are compiled with different values ... Right now I use an ugly workaround declaring variable for every concatenation I need eg.- var bottle="bottle_"+related+".jgp"
but this is way far from idealIs it a bug or am I missing something?