I have a singleton called "Global" with header & footer information. What would be the best way to access that singleton on all routes in app.js?
What frontend framework are you using?
Hello. Its just a standard Express/Pug site.
You could do that with a wildcard * query like we do for the menu singleton in our Node.js website example:
Thanks @Phil...that worked perfectly. Cheers!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.