๐Ÿ“š Agora location [[escaped and raw components]] โ˜†
Agora locations contain community contributions with titles or topics that match your search. x
๐Ÿ“„ not/Projects/Astro/RFCs/escaped-and-raw-components.md by @evan โ˜† raw ๐Ÿค—
  • Start Date: 2022-01-23
  • Implementation PR: (leave this empty)
  • Evans sanity spiral 2/4

Summary

This RFC adds two new components to astro, Raw, and Escaped. Both are frontends for existing or to be implemented features

Example

<Raw><>>>><<<SdsdasSd <$%> {let i = 5;}</Raw>

gets compiled to

<>>>><<<SdsdasSd <$%> {let i = 5;}

<Escaped><h1>Yo!</h1></Escaped>

gets compiled to

&lt;h1&gt;Yo!&lt;/h1&gt;

Motivation

This makes two astro features more easily accessible.

Detailed design

Raw

  • Frontend component for astro-data-raw
  • Blocked by compiler/#263

Escaped

Drawbacks

  • Adds uneeded complexity
  • Not really needed

Alternatives

Just don’t do it.

Unresolved questions

Is Escaped possible using frontmatter?


Incredibly high quality RFC I know.

Loading pushes...

โœจ AI Synthesis Mistral Gemini ChatGPT Claude x

Expanding this section will automatically generate an AI synthesis of the contributions in this node.

Rendering context...