-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access to a astro.renderToString
method?
#4372
Comments
Astro.renderToString
method?astro.renderToString
method?
For context on why I'm trying to do this. I'd like to be able to have an API endpoint that returns an astro component HTML. That's pretty much it. I think it would be cool. |
Recently used the Astro compiler which might be similar to what you're looking for, though it's still a bit internal-ish to use AFAIA. Anyways, the issues here are usually for bug reports. For feature requests, please open at https://github.com/withastro/rfcs/discussions! You might get better awareness there. |
Ok closing out opened discussion here: withastro/roadmap#254 |
I opened a discussion in the RFC category for this here: withastro/roadmap#409 |
I've dug into the code but I couldn't find any mention / Astro api that would allow me to pass in a
.astro
file and spit out HTML. Something likereact.renderToString
. Does this exist?Not sure if this would live within the Astro global, or just within the package something like:
or
The text was updated successfully, but these errors were encountered: