Skip to content

Commit b049561

Browse files
committed
Clarify renderInnerPage return type description
1 parent 49b3ef0 commit b049561

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ export default feedsTemplate
955955

956956
Any `PageData` instance exposes two methods for accessing rendered output:
957957

958-
- `await page.renderInnerPage({ pages })` returns the page content as rendered by its builder (markdown converted to HTML, for example) without a layout wrapper applied.
958+
- `await page.renderInnerPage({ pages })` returns the page's inner render output as produced by its builder, without a layout wrapper applied. This is often an HTML string (for example, markdown rendered to HTML), but the type depends on the page builder.
959959
- `await page.renderFullPage({ pages })` returns the complete page output with its layout applied.
960960

961961
Both methods are async and require the full `pages` array. They are available inside templates, in `global.data.js`, inside page functions, and inside layouts.

0 commit comments

Comments
 (0)