I'm currently working with an example template that didn't use Yoke, I think I am close to adding Yoke but I keep getting a 500 internal server error when I hit a route. I think its due to not being able to locate the view to be displayed.
The directory structure (simplified) is as follows
root
|
+ -- src
| + -- main
| | + -- resources
| | | + -- web // this directory is from the existing skelton example
| | | | -- index.html
| | | + -- views // this is a new directory I have added
| | | | -- index.ejs
| | | -- server.js
| | | -- mod.json
The route code resides within server.js and is as follows:
router.get('/test', function (req) {
req.response.render('views/index.ejs');
});
I'm currently working with an example template that didn't use Yoke, I think I am close to adding Yoke but I keep getting a 500 internal server error when I hit a route. I think its due to not being able to locate the view to be displayed.
The directory structure (simplified) is as follows
The route code resides within server.js and is as follows:
Does this look correct?