Friday 29 December 2017

Proper structure using ejs

Hey just a quick question on structuring my app. basically, I have a partials folder that holds stuff I expect to see on most the pages in my app e.g. navbar.ejs, the navbar expects a user object to be passed through with the router request; if it's true or false the navbar.ejs has an if clause and reacts accordingly. Is this a good solution ? It seems clunky. If not do you have a example I could see

Submitted December 30, 2017 at 02:25AM by rvncpn

No comments:

Post a Comment