Answer the question
In order to leave comments, you need to log in
How to pass variable to js part of jade template?
There is a jade template with a case. How to pass the value of the name variable to this case?
case name
when 'Вася'
p Васильевич
when 'Петя'
p Петрович
- var name = #{name}
, and only then push it into the case, but then it gives an errorSyntaxError: Unexpected character '#' (04:11)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question