-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
request.server._views in plugin #1795
Comments
First, don't call anything starting with an As for |
@hueniverse I'm not trying to return the rendered view in an http response. I am trying to build a simple email template service that accepts a json payload, renders the html, and sends out the email via an smtp server. Is there a way to access the rendered html after Regarding |
@hueniverse Awesome! By the way, in the case that my handler is in a different file, what's the best way to share the Also, I am running |
@hueniverse Super sorry. I just saw the |
@futurechan use |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
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
The text was updated successfully, but these errors were encountered: