Skip to content

request.render does not pass the request to the context function #115

@rubennorte

Description

@rubennorte

I that rendering a template with request.render is supposed to be equivalent to doing so with reply.view but the prior doesn't send request to the context function configured in server.views.

server.views({
  ...
  context: request => request.app.someProperty
});

Using reply.view works fine but with request.render request in undefined.

Edit: I needed this to use request.render as a workaround for #106

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions