What's the advantage of not having any build steps? For me personally, it's an instant turn-off, as I'll never use an untyped library.
Show HN: Cami.js – A no build, web component based reactive framework
31–36 of 36 posts
Re: Show HN: Cami.js – A no build, web component based reactive framework
#32Re: Show HN: Cami.js – A no build, web component based reactive framework
#33Umm, how do the templates escape malicious input (XSS)?
Re: Show HN: Cami.js – A no build, web component based reactive framework
#34I also created a webcomponent-based framework two months ago: https://realm.codes
Re: Show HN: Cami.js – A no build, web component based reactive framework
#35lit-html author here. I'm glad the template library is useful for you! Question regarding interop with other web components: I don't see how to create reactive properties on elements. Can they receive data from parents via property bindings? Ie, could a Lit element pass data to a Cami element?
Unfortunately I haven't thought much yet about interoperability with other web components libraries like lit. I imagined folks would choose just one web component library over the other.
That said, you can initialize reactive properties(1), but property bindings won't work if there's a parent LitElement (as my reactive properties need to be called with either a .value method or an .update method for getting and setting respectively).
As of the moment, what's possible is interop with other cami elements using a store, and in a future version, i'm considering a richer event system for external javascript code to listen to.
---
(1) Initializing is possible with observerableAttr: https://github.com/kennyfrc/cami.js/blob/master/examples/008...
Re: Show HN: Cami.js – A no build, web component based reactive framework
#36Umm, how do the templates escape malicious input (XSS)?
Example: https://api.rubyonrails.org/classes/ActionView/Helpers/Sanit...