Tags:
This is a tiny partial meant to demonstrate synchronous templates.
Hello, world! And some other "quoted text"This following doesn't work as expected. The intention is to pass JSON to a partial, so the partial can use it as data. However, the code recieves a string where the quotes are encoded as HTML entities, and then the JSON.parse function fails due to a syntax error. Hence in listrender.html.ejs the intended code is now commented-out.
-
{ "items": { "item 1": "item text 1", "item 2": "item text 2", "item 3": " item text 3 ", "item 4": "item text 4" } }