

I'm sorry if this was a very obvious question.Īpp.js const express = require('express') Ĭonst filepath = path.basename('Users/x/Downloads/sem 2/CSIS 3380 Web Programming JS/Session 4/Express Site/public') I seriously have been trying to figure this out for hours to no result. My question is how do link the JSON file? or link the array objects? Then be able to pass that data to pug templates by adding them as locals in the JS file. Based on id (from JSON) i need to render a desired version of Pug project template to display individual project from the array list projects in the JSON file. I've omitted the Pug files because of plagarism issues. I'm making a website that displays my projects linked with their github repo.
