https://github.com/blobbybilb/why-component
The Why? Component.
https://github.com/blobbybilb/why-component
Last synced: about 1 year ago
JSON representation
The Why? Component.
- Host: GitHub
- URL: https://github.com/blobbybilb/why-component
- Owner: blobbybilb
- License: gpl-3.0
- Created: 2022-10-29T03:17:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-14T20:30:53.000Z (over 2 years ago)
- Last Synced: 2024-05-30T02:14:43.638Z (about 2 years ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Why?Component
### no-compile HTML/JS library to make reuseable components
**An only slightly non-serious project**
## Why?
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.
## Features:
- 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
## How-to
Add this to HTML:
```html
```
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.
## known bugs
- rendering markdown that has whitespace at the start of the line
## Limitations
Yes.