←back to thread

217 points palmfacehn | 1 comments | | HN request time: 0.203s | source
Show context
jjcm ◴[] No.45108239[source]
Templates are solid and are slightly more performant than including your html-in-js for webcomponents, but that said I really wish there was some sort of web component file format that incorporated:

- The HTML

- The JS

- The CSS

In some sort of a structured way that's easy to load and distribute as a library. I don't like that to use webcomponents the right way, you have to load the logic from an import and then inline the html aspects of it.

replies(3): >>45108412 #>>45108881 #>>45111534 #
1. dexwiz ◴[] No.45111534[source]
Salesforce actually had a really nice module format called LWC that does that. Also supports one way binding. Too bad they never championed outside of customer use.