@athenna/http 5.1.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/context/Response.js +4 -1
package/package.json
CHANGED
package/src/context/Response.js
CHANGED
|
@@ -96,7 +96,10 @@ export class Response {
|
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
98
|
async view(view, data) {
|
|
99
|
-
const content = await View.
|
|
99
|
+
const content = await View.edge
|
|
100
|
+
.createRenderer()
|
|
101
|
+
.share({ request: this.request })
|
|
102
|
+
.render(view, data);
|
|
100
103
|
await this.safeHeader('Content-Type', 'text/html; charset=utf-8').send(content);
|
|
101
104
|
this.response.body = content;
|
|
102
105
|
return this;
|