Answer the question
In order to leave comments, you need to log in
How to print one element in pug?
Hello everyone, I am passing the Json "Offers" to the template.
Through the loop I can print it
each offer,index in offers
offer.id
offer.name
offer.organizationname
{"id":366,"name":"Test","organizationname":"Test"}
Use of undefined constant name - assumed 'name'
Answer the question
In order to leave comments, you need to log in
https://codepen.io/roamn/pen/GXgMyV
Codepen has no problems compiling pug.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question