Mu icon indicating copy to clipboard operation
Mu copied to clipboard

Using partials

Open dclowd9901 opened this issue 13 years ago • 0 comments

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}}

dclowd9901 avatar Aug 07 '12 04:08 dclowd9901