3 ms·
Since we're sharing HTML in JS syntaxes. Don't forget JS tagged template literals like https://jsr.io/@mastrojs/mastro/doc/~/html https://jsr.io/@mastrojs/mastr
by mb2100 11mo ago
Since we're sharing HTML in JS syntaxes. Don't forget JS tagged template literals like https://jsr.io/@mastrojs/mastro/doc/~/html https://jsr.io/@mastrojs/mastro/doc/~/html
- nymanjon 11mo agoMastro looks like what I do for my offline-first, rendered from Service Workers. I just compose html template string literals and stream them back to the front end. The lib I use for HTML is a bit more powerful though. It is a very elegant way to program. https://github.com/jon49/Soccer https://github.com/jon49/Soccer
- mb2100 11mo agoThanks, this one? https://github.com/jon49/html-template-tag-async https://github.com/jon49/html-template-tag-async Looks very similar indeed! What makes it "more powerful" than Mastro's html template?