Skip to content

request.server._views in plugin #1795

@futurechan

Description

@futurechan

I was calling request.server._views.render to render some html server-side, which was working great. Now I have moved this to a plugin, but I can't seem to find the right _views object. What am I missing?

Similarly, how do I access plugin.app from a handler declared within the plugin. https://github.com/spumko/hapi/blob/master/docs/Reference.md#pluginapp

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions