Answer the question
In order to leave comments, you need to log in
How to insert text with a variable in Pug?
I looked all over but couldn't find an answer.
Let me explain with an example:
res.render.call("file", {count: 100, textTemplate: "`Количество: ${count}`"}, );
p #{eval(textTemplate)}
- console.log(count)
p #{eval(textTemplate)}
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