renderToString() — astro Function Reference
Architecture documentation for the renderToString() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 765ee439_68bf_1e77_8861_ae817e9e4008["renderToString()"] cb9f7e72_0a2c_f337_8c0f_3a16cbafeab3["experimental_AstroContainer"] 765ee439_68bf_1e77_8861_ae817e9e4008 -->|defined in| cb9f7e72_0a2c_f337_8c0f_3a16cbafeab3 d7aea22d_3fc3_221d_dab6_a15370f48fd6["renderToResponse()"] 765ee439_68bf_1e77_8861_ae817e9e4008 -->|calls| d7aea22d_3fc3_221d_dab6_a15370f48fd6 07500509_f19a_b38a_ea7c_e274020ebee9["markAllSlotsAsSlotString()"] 765ee439_68bf_1e77_8861_ae817e9e4008 -->|calls| 07500509_f19a_b38a_ea7c_e274020ebee9 style 765ee439_68bf_1e77_8861_ae817e9e4008 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/container/index.ts lines 485–495
public async renderToString(
component: AstroComponentFactory,
options: ContainerRenderOptions = {},
): Promise<string> {
if (options.slots) {
options.slots = markAllSlotsAsSlotString(options.slots);
}
const response = await this.renderToResponse(component, options);
return await response.text();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does renderToString() do?
renderToString() is a function in the astro codebase, defined in packages/astro/src/container/index.ts.
Where is renderToString() defined?
renderToString() is defined in packages/astro/src/container/index.ts at line 485.
What does renderToString() call?
renderToString() calls 2 function(s): markAllSlotsAsSlotString, renderToResponse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free