Question:
I am trying to send JSON options into a pug file with a space in the attribute names.For example, inside an express get request:
Answer:
Pug makes locals available under thelocals
property so you can simply use the following…Another option to make this easier would be to simply bundle all your
json
properties under a single object…If you have better answer, please add a comment about this, thank you!