I know this kind of stupid question to ask . But for beginners and familiar with express nodejs , this question might found useful to others as well. For me , I am familiar rendering nunjucks with this method by using express nodejs. Here is an example that we all know about it :
nunjucks.render('index.html', { foo: 'bar' });
And I found your Apostrophe Docs on this documentation that using render(req, name, data) . I want to customize my cursor and override req.data like using nunjucks above . And I found out that this is the right method to use and I don't know where to start ! Should I use self.beforeShow ? I don't want to use self.route where GET request are taking place. I just want to add additional data and render it on show.html , indexAjax.html or even using a custom indexCustom.html using similar as Nunjucks example above. I know how to do cursor and manipulate the data by it. I'm a slow learner but I never stop learning. Thank you in advance.
P/s : If you guys can post a new tutorial at HOWTO section for this "extra rendering/override data into the page" , that would be extremely helpful !