Skip to content

Commit

Permalink
Merge pull request #2100 from jagoda/feat-update-vision
Browse files Browse the repository at this point in the history
Global view context.
  • Loading branch information
Eran Hammer committed Nov 7, 2014
2 parents cc1fcc0 + e41c55b commit 09bfbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,7 @@ Initializes the server views manager where:
- `runtimeOptions` - options object passed to the returned function from the compile operation. Defaults to empty options `{}`.
- `contentType` - the content type of the engine results. Defaults to `'text/html'`.
- `compileMode` - specify whether the engine `compile()` method is `'sync'` or `'async'`. Defaults to `'sync'`.
- `context` - a global context used with all templates. The global context option can be either an object or a function that takes no arguments and returns a context object. When rendering views, the global context will be merged with any context object specified on the handler or using `reply.view()`. When multiple context objects are used, values from the global context always have lowest precedence.


```javascript
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09bfbc5

Please sign in to comment.