Replies: 3 comments 4 replies
-
This has come up a few times, and I agree that it's a good feature to add. I'm curious of a component is the right approach. The issue is that this logic probably needs to happen in the compiler and the compiler doesn't know about components. Would something like this work? <div astro-raw>...</div> ? |
Beta Was this translation helpful? Give feedback.
4 replies
-
With a special blessing from @boehs, I will also present the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Early Feedback from the Community RFC Call (2022-01-25)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
This RFC adds two new components to astro,
Raw
, andEscaped
. Both are frontends for existing or to be implemented featuresExample
gets compiled to
gets compiled to
Motivation
This makes two astro features more easily accessible.
Detailed design
Raw
astro-data-raw
Escaped
This component is mostly possible using the following code
This code escapes html elements, but It does not support escaping
{}
Drawbacks
Alternatives
Just don't do it.
Incredibly high quality RFC I know.
Beta Was this translation helpful? Give feedback.
All reactions