File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed
site-content/templates/src Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
import { hydrate } from 'lit/experimental-hydrate.js' ;
8
- import { renderBody } from '../templates/body.js' ;
9
8
import { renderElementPage } from './element.js' ;
10
9
11
10
const data = (
@@ -16,4 +15,4 @@ const data = (
16
15
// We could also remove the attribute manually, or not use deferhydration, but
17
16
// instead manually assign the data into the <wco-element-page> element, and
18
17
// time imports so that automatic element hydration happend after.
19
- hydrate ( renderBody ( renderElementPage ( ...data ) ) , document . body ) ;
18
+ hydrate ( renderElementPage ( ...data ) , document . body ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ import {
12
12
13
13
import type { TemplateResult } from 'lit' ;
14
14
import type { DirectiveResult } from 'lit/directive.js' ;
15
- import { renderBody } from '@webcomponents/internal-site-client/lib/templates/body.js' ;
16
15
17
16
import { escapeHTML } from './escape-html.js' ;
18
17
export { unsafeHTML } from 'lit/directives/unsafe-html.js' ;
18
+ export { html } from 'lit' ;
19
19
20
20
export function * renderPage (
21
21
data : {
@@ -70,7 +70,7 @@ export function* renderPage(
70
70
</head>
71
71
<body>
72
72
` ;
73
- yield * render ( renderBody ( data . content ) , options ) ;
73
+ yield * render ( data . content , options ) ;
74
74
75
75
if ( data . initialData !== undefined ) {
76
76
yield `<script>window.__ssrData = ${ JSON . stringify (
You can’t perform that action at this time.
0 commit comments