fac-14 / SEMN

0 stars 1 forks source link

Connect database to view engine #12

Open martingaston opened 6 years ago

martingaston commented 6 years ago

Model and Controller:

https://github.com/fac-14/SEMN/blob/2e9d6b9ab3bf8bc8ba78fa7cd74953008b6ef109/src/controllers/profile.js#L2-L3

Change to res.render("profile", { obj }); and before that make a dbQuery.getFacster() call to get that data - it looks like we'll have to nest that in a callback, too.

Views:

https://github.com/fac-14/SEMN/blob/2e9d6b9ab3bf8bc8ba78fa7cd74953008b6ef109/src/views/profile.hbs#L4-L15

Replace dummy data with relevant {{ handlebars }} data from our object - we can also dummy the object.