virchau13 / tree-sitter-astro

Tree-sitter grammar for the Astro web framework
MIT License
98 stars 9 forks source link

Does it support more complex cases ? #24

Closed FabriceSalvaire closed 7 months ago

FabriceSalvaire commented 10 months ago
---
const res = await fetch("http://localhost/wordpress/wp-json/wp/v2/posts");
const posts = await res.json();
---
<h1>Astro + WordPress</h1>
{
posts.map((post) => (
    <h2 alignset:html={post.title.rendered} />
    <p set:html={post.content.rendered} />
))
}