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 55 */
66
77import { hydrate } from 'lit/experimental-hydrate.js' ;
8- import { renderBody } from '../templates/body.js' ;
98import { renderElementPage } from './element.js' ;
109
1110const data = (
@@ -16,4 +15,4 @@ const data = (
1615// We could also remove the attribute manually, or not use deferhydration, but
1716// instead manually assign the data into the <wco-element-page> element, and
1817// 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 {
1212
1313import type { TemplateResult } from 'lit' ;
1414import type { DirectiveResult } from 'lit/directive.js' ;
15- import { renderBody } from '@webcomponents/internal-site-client/lib/templates/body.js' ;
1615
1716import { escapeHTML } from './escape-html.js' ;
1817export { unsafeHTML } from 'lit/directives/unsafe-html.js' ;
18+ export { html } from 'lit' ;
1919
2020export function * renderPage (
2121 data : {
@@ -70,7 +70,7 @@ export function* renderPage(
7070 </head>
7171 <body>
7272` ;
73- yield * render ( renderBody ( data . content ) , options ) ;
73+ yield * render ( data . content , options ) ;
7474
7575 if ( data . initialData !== undefined ) {
7676 yield `<script>window.__ssrData = ${ JSON . stringify (
You can’t perform that action at this time.
0 commit comments