express-ejs-layouts
express-ejs-layouts copied to clipboard
extractStyles not working when script tag is in partial
When including a partial in a view and the partial has script tags inside it, they don't get extracted to the end of the page. Is this a bug or am I supposed to do it another way? I've enabled the layout extractStyles option in app.set
Can you write a unit test showing the failure?
@soarez I have the same issue My external js script in inside the header of the layout.ejs and whenever I enter in index/Home page the script works fine but as i click the other page in the website then this error occurs:
"GET http://localhost:3000/books/javascripts/fileUploads.js net::ERR_ABORTED 404 (Not Found)" Kindly help!!