Improving Loops #94
jonathantneal
started this conversation in
Proposal
Replies: 2 comments 2 replies
-
Can we create directives without hard coding it into astro? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have been wanting to tackle this for quite some time! Curious why you suggested directives rather than Components? Components seem like the right primitive to me since they are extensible and can be written by users. It might require less work in the compiler to fix conditional rendering than it would to hard-code whatever directives we land on. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looping over a list of items in Astro is an exercise in understanding JavaScript.
Example: Astro / JSX
This is not the case in other languages:
Example: Svelte
As an author who prefers the simplicity of HTML-like markup in Astro files, I would like to do this using directives.
Hypothetical Example: Astro
Beta Was this translation helpful? Give feedback.
All reactions