P
P
petrov_ruslan2019-10-09 14:49:54
HTML
petrov_ruslan, 2019-10-09 14:49:54

How to display the properties of an object stored in the included js file using pug?

There is an object that is processed in a js file included in pug. When I try to compile it, I get the error "Cannot read property 'length' of undefined". Pug can't get object from third party file? Because when you add it directly to pug, everything is ok.
https://codepen.io/Petrov_Ruslan/pen/eYYNeao
_

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monochromer, 2019-10-09
@petrov_ruslan

Pass data from js file to pug'a render method via locals

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question