Answer the question
In order to leave comments, you need to log in
How to add data to variable in script tag in pug?
how to add an array with objects (for example) to a variable in pug?
to have something like
var data = #{data};
and rendered as
var data = [{},{},{}];
can you do that?
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