Composable HTML lib #261
jon49
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
-
You guys might like this. It is an HTML lib which works in service workers, Cloudflare workers, and Deno (and I'm sure in node.js) which streams the html to the browser rather than concatenating the strings. I don't know what the performance of it is but I imagine it should be pretty good, I'm sure with some tests some performance boosts could be made. It uses template tag literals.
https://github.com/jon49/VideoDownloader/blob/master/src/util/html.ts
Example uses:
Vanilla Deno
https://github.com/jon49/VideoDownloader/blob/master/src/pages/home/index.html.ts
Service worker
https://github.com/jon49/MealPlanner/blob/master/src/app/meals/add/index.html.ts
https://github.com/jon49/MealPlanner/blob/master/src/app/sw.ts#L111
Cloudflare Worker:
https://github.com/jon49/meal-planner/blob/master/src/index.ts#L23
Beta Was this translation helpful? Give feedback.
All reactions