An only slightly non-serious project
I often want components, like in most frontend frameworks, in pure HTML/CSS/JS without the need to compile. This is the simplest way I could think of to implement this.
- Reuseable external components done in a very basic way (with markdown support)
- Looks like HTML (inspired by and complements AlpineJS)
- components are just normal html/markdown files
Add this to HTML:
<script defer src="/why.js"></script>
This repo is an example, see index.html
. To try it out, clone/download this repository and start a file server in the main folder.
- rendering markdown that has whitespace at the start of the line
Yes.