You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's worth noting somewhere in your Readme that, in order to be able to use partials, you must configure mu.root, like so:
var mu = require('mu');
var path = require('path');
mu.root = path.join(__dirname, 'server/views');
Assuming you were storing your views in the folder server/views relative to the main app.js file. There doesn't appear to be a way to call a partial like so
{{>server/views/header.mu}}
So, the definition, I presume, directs Mu where to look for
{{>header.mu}}
The text was updated successfully, but these errors were encountered:
I think it's worth noting somewhere in your Readme that, in order to be able to use partials, you must configure mu.root, like so:
var mu = require('mu');
var path = require('path');
mu.root = path.join(__dirname, 'server/views');
Assuming you were storing your views in the folder server/views relative to the main app.js file. There doesn't appear to be a way to call a partial like so
{{>server/views/header.mu}}
So, the definition, I presume, directs Mu where to look for
{{>header.mu}}
The text was updated successfully, but these errors were encountered: