Skip to content

Commit 83e239b

Browse files
update renderer plugin docs usage clarifications
1 parent d97d513 commit 83e239b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ 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
387387
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.
388388

0 commit comments

Comments
 (0)