Closed rahulkathet closed 3 years ago
ContentFor is neither JavaScript, nor part of the EJS API. Looks like it's something from Sinatra or Handlebars? Anyhow, it's not EJS. Closing this issue. Please feel free to reopen if there is an actual problem with EJS.
ContentFor is neither JavaScript, nor part of the EJS API. Looks like it's something from Sinatra or Handlebars? Anyhow, it's not EJS. Closing this issue. Please feel free to reopen if there is an actual problem with EJS.
Thank you for the information, just sharing if someone else is looking for a solution.
The issue was with "express-ejs-layouts"
Not working when it is set to "true"
sampleapp.set("layout extractScripts", true)
Resolved when set to false
sampleapp.set("layout extractScripts", false)
ContentFor() not working when adding inline script tag.