I'm in the middle of building my first web application using Node.js and Expressjs. For my template/view-engine I use Express-handlebars, but I've some issues.
I want to be able to dynamically change content in the red area, based on the menu selected in the left menubar.
I've already successfully set up routes for rendering the right page, but can I add another "subdirectory" in same way as the first? So for example: "domain/admins/adminpanel/dashboard" shows the users dashboard in the red area and "domain/admins/adminpanel/posts" shows something else in the red area?
I have tried using handlebars partials, but I do not quite understand the purpose of using it in the way I want.
via Christian
No comments:
Post a Comment