Open fezekilePlaatyi opened 3 years ago
Hi there! There may be a chance that the documentation is out of date, as we have been adding a lot of features, and possible breaking changes - could you share your full code (or as much of it as you can) in a gist with some comments? We would need to see your happner config, and get an idea of your project layout etc.
Hello @southbite. Sorry for the late reply, the Walkthrough I was following is at Basics Link. So basically what I am trying to do is rendering the index.html file located here ./node_modules/master/app/index.html so I have a router on Master having following code:
Master.prototype.static = function($happn, req, res, next) {
//how to render ./node_modules/master/app/index.html here?
}
Mainly I have a mesh as demonstrated on this basic walkthrough, at the end of it it should render index.html file on Master/app/ which display the metrics send by another node on mesh. So the problem is in rendering that HTML file which I don't know how I can inside that static route
I have checked online for help in this but haven't found any. I am trying to render the example on the Basics walkthrough. I am failing to render the static file index.html. From example, you writers of Happner have left to define the route handler for static. I did write it like this as seen from some example but I am failing to return that index.html file inside Basic on the walkthrough, in Express I would res.render('index') how can I do it here.
my route handler is as
Master.prototype.static = function($happn, req, res, next) { res.end() }