I want to do something like this:
var route = '.' + route.path + '-view.js'; require(route);
But it doesn’t work. This is working.
So for some reason it’s not working with variables. Is this a meteor issue or a require issue? I’ve tried various solutions found on the internet and a few of my own without any success.
When doing the first example I am getting this:
Cannot find module './search-view.js'