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

Bug: when view options setting imports #1

Closed
Justinidlerz opened this issue Apr 25, 2017 · 2 comments
Closed

Bug: when view options setting imports #1

Justinidlerz opened this issue Apr 25, 2017 · 2 comments
Labels

Comments

@Justinidlerz
Copy link

When i setting view options imports key, like so:

app.set('view options', {
  debug: process.env.NODE_ENV !== 'production',
  imports:  {
    $manifest: filename => manifest[filename] || filename
  })
});

throw a error $escape not a function

You must extend defaults options can fix it.

app.set('view options', {
  debug: process.env.NODE_ENV !== 'production',
  imports: extend({}, artTemplate.defaults.imports, {
    $manifest: filename => manifest[filename] || filename
  })
});
@aui aui added the bug label Apr 25, 2017
aui added a commit to aui/art-template that referenced this issue Apr 25, 2017
aui added a commit to aui/art-template that referenced this issue Apr 25, 2017
@aui aui closed this as completed Apr 25, 2017
@Justinidlerz
Copy link
Author

还是老问题,但这次如果进行extend也报错了

@aui
Copy link
Owner

aui commented May 11, 2017

重构的时候产生了新的 BUG,v4.9.1 已经修复

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

No branches or pull requests

2 participants