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

locals can be passed as views opts #15

Closed
wants to merge 1 commit into from
Closed

Conversation

xpepermint
Copy link

With this commit locals can be sent like this:

var views = require('../../co-views');
module.exports = views(__dirname+'/../app/views', {
  map: { ... },
  locals: { ... } // this is needed for flexibility
});

This update also solves this proposal: #14
Please accept and merge. Thanks.

@xpepermint xpepermint mentioned this pull request Aug 29, 2014
@haoxins
Copy link
Collaborator

haoxins commented Feb 11, 2015

2f57d2c

land in 0.3.0

@haoxins haoxins closed this Feb 11, 2015
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

Successfully merging this pull request may close these issues.

2 participants