diff --git a/README.md b/README.md index 1edd6c9..286a4e7 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,13 @@ Register the plugin in the application's manifest: "register": { "catalyst-render": { "plugin": "require:@vrbo/catalyst-render", - "routes": [{ - "route": "require:./routes/application.js", - "component": "require:../components/App/server.js", - "template": "./templates/welcome.hbs" - }] + "options": { + "routes": [{ + "route": "require:./routes/application.js", + "component": "require:../components/App/server.js", + "template": "./templates/welcome.hbs" + }] + } } } ... @@ -48,7 +50,7 @@ module.exports = { const template = request.pre.template; const Component = request.pre.component; const body = ReactDOMServer.renderToString(); - h.view(template, { body }) + return h.view(template, { body }) }, id: 'root' } @@ -85,4 +87,4 @@ This is an object for registering routes, React components, and templates * [License](LICENSE) * [Code of conduct](CODE_OF_CONDUCT.md) * [Contributing](CONTRIBUTING.md) -* [Changelog](CHANGELOG.md) \ No newline at end of file +* [Changelog](CHANGELOG.md)