Closed jaysylvester closed 3 years ago
The entire public context is now returned in all scenarios, providing include context in all controllers, including the layout controller. Also did some other cleanup to make the chain and post-request context clearer.
Rendered includes are added to the calling controller's public context for HTML output like so:
HTML view (Handlebars in this case):
But when JSON is requested, only the parent controller's public context is included. The JSON output of the above example would be:
Any public context generated by the _head include is ignored. It might make more sense to extend the parent controller's public context with the include's public context when JSON is requested: