Skip to content

Commit

Permalink
update astro-1
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 29, 2024
1 parent b691fbc commit 53d3d07
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/content/blog/astro-1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,21 @@ The [Astro webpage](https://astro.build) describes it as a "web framework for
content-driven websites". You can find many explanations on the internet about
how Astro works, but here is my take as a list of the key features:

- Much like [Pandoc](https://pandoc.org), Astro can take input Markdown files
and transform them into HTML.
- Much like [Pandoc](https://pandoc.org), Astro takes Markdown files as input,
and outputs some HTML.
- You start from you plain HTML+CSS, statically served.
- Astro code fences let you generate the HTML programmatically, for example:
```astro
---
// This is JavaScript
const text = "foo" + "bar";
---
<!-- This a Component template (HTML+{JS}) -->
<p>{text}<p>
```
- A standard library that can handle content collections for you.

Apart from these insights, this framework feels to me just like "HTML + JS
components", which is exactly what I needed.

0 comments on commit 53d3d07

Please sign in to comment.