Skip to content

Commit df62939

Browse files
docs: #224 renderer plugin clarifications and links (#236)
1 parent d97d513 commit df62939

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/docs/reference/plugins-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ This plugin type supports the following options:
380380
381381
### Examples
382382
383-
#### Default
383+
#### Execute Route Module
384384
385-
The recommended Greenwood API for executing server rendered code is in a function that is expected to implement any combination of [these APIs](/docs/pages/server-rendering/#api); `default export`, `getBody`, `getLayout`, and `getFrontmatter`.
385+
The recommended Greenwood API for executing server rendered code is in a function that is expected to implement any combination of [these APIs](/docs/pages/server-rendering/#api); `default export`, `getBody`, `getLayout`, and `getFrontmatter`. For efficient SSR, `contentOptions` are provided to signal to the implementation which content is being requested (one of frontmatter, body, or layout contents).
386386
387-
You can follow the [WCC default implementation for Greenwood](https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/src/lib/execute-route-module.js) as a reference.
387+
You can follow the [WCC default implementation for Greenwood](https://github.com/ProjectEvergreen/greenwood/blob/master/packages/cli/src/lib/execute-route-module.js) as a reference, or our [Lit SSR plugin](https://github.com/ProjectEvergreen/greenwood/blob/master/packages/plugin-renderer-lit/src/execute-route-module.js).
388388
389389
#### Custom Implementation
390390

0 commit comments

Comments
 (0)