Answer the question
In order to leave comments, you need to log in
The variable passed to the .pug mixin is not visible in the script, what can I do?
this is a regular mixin in a pug file, every time I add it to index.pug I need this function to be called with the same parameters that are passed to the mixin. but these variables are not visible in the script, maybe there is another option?
Now I do it this way - every time I call the function along with the mixin in index.pug
Answer the question
In order to leave comments, you need to log in
mixin chart(value)
script.
updateChart(#{value})
+chart(10)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question