https://github.com/printf83/bsts
https://github.com/printf83/bsts
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/printf83/bsts
- Owner: printf83
- License: mit
- Created: 2022-12-01T11:34:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T11:11:41.000Z (almost 2 years ago)
- Last Synced: 2024-10-17T02:41:36.766Z (over 1 year ago)
- Language: TypeScript
- Size: 2.3 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bsts
Maybe this is the stupid way to generate HTML, but, this is the way I learn.
This library is just to create bootstrap 5.3 HTML but in TS way.
example :
```
import {core, b, h} from "@printf83/bsts";
core.documentReady(() => {
let body = document.getElementById("main") as Element;
core.replaceChild(body, new h.div([
new h.p("This is example p tag"),
new h.p({lead:true,data:{test:"test-data"}},"This is example p tag with attribute"),
new b.button({id:"btn1",color:"primary"},"Button"),
]));
});
```
Check [bsts testing website](https://printf83.github.io/bsts-test/) or [github](https://github.com/printf83/bsts-test) for more example code
Update : 21/07/2023