I'd like to be able to have a dynamic page in Astro that renders out an Astro component. I've dug into the docs and code, and couldn't find a function like the one below (Asto.render). Ideally, I can pass properties into it. I'm looking for something similar to react.renderToString.
import Example from './components/Example.astro'
export async function get() {
return {
body: Astro.render(Example)
};
}