You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The helpers compactJsHtml() and compactJs() are attached to app.helpers, which means that they exist for the duration of the application, not the request (as expected).
Here is a problem that is causes:
app.js
app.get('/',routes.index);// No JS on pageapp.get('/edit',compact.js(['edit']),routes.edit);// `edit` JS on the page
The helpers
compactJsHtml()
andcompactJs()
are attached toapp.helpers
, which means that they exist for the duration of the application, not the request (as expected).Here is a problem that is causes:
app.js
layout.jade
(inherited by index and edit views)/
then the page is output as desired: no JS./edit
then the page is output as desired:edit
JS/
output theedit
JS becausecompactJsHtml
is still defined from the request to/edit
The text was updated successfully, but these errors were encountered: