Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using partials #40

Open
dclowd9901 opened this issue Aug 7, 2012 · 0 comments
Open

Using partials #40

dclowd9901 opened this issue Aug 7, 2012 · 0 comments

Comments

@dclowd9901
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant