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
{{ message }}
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
"Every Jade template has access to the app variable. Page templates can additionally access their own page data via the page variable."
Yes, you can access app as a special global in templates.
From a code design standpoint it makes more sense to query the database in the controller and pass the result to the template. The template should not care about where the data comes from. This would be a cleaner, recommended solution.
My index.js file is;
I want, get db records in pages. Am i access to app variable in pages globally ?
The text was updated successfully, but these errors were encountered: