component-driven html parser with bun #4455
CodeFromAnywhere
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used Bun's
HTMLRewriter
along withBun.serve
to create a JIT parser for HTML files that act as components like in React.GitHub: https://github.com/CodeFromAnywhere/ctml
Site: https://codefromanywhere.github.io/ctml/index.html
The idea is that you can serve this at the edge, it's super simple to wrap your head around, and you can split up your html into little components, which makes it easier to work with. It avoids using shadow dom and other heavy artillery like in React. You're working in actual Markdown, HTML, CSS and JS files.
It even supports mapping over json and csv files directly from html!
It was just a pet project, hope you like it!
Beta Was this translation helpful? Give feedback.
All reactions