Wednesday, 6 March 2019

Using express and pug, how do I render multiple divs on a page using different routes?

For example, when I am rendering '/' I have a drop down menu that is populated based on get '/pets' and I have divs populated based on get 'pets/:types' which then have embedded divs that are populated based on get 'pets/:type/:breed' and under that get 'pets/:type/:breed/names. I'm totally new to express and pug, so I apologize if this is a stupid question and thank you in advance.Div layout exampledog // Get from /pets/:type husky // Get from /pets/:type/:breed * luna // Get from /pets/:type/:breed/names * Sam Beagle * Fred * Frank Cat Maine Coon * Sally Bengal * Moose

Submitted March 06, 2019 at 05:38PM by sorry_mom_42069

No comments:

Post a Comment