These are chat archives for ractivejs/ractive
Reading https://ractive.js.org/api/#example-component-file - this is very confusing. As the reader I am immediately looking for what
It may be better to provide a link to a source code repository providing such an example instead of an inline code snippet.
Eventdocumented on the API page. Keep forgetting where the docs are found for that one.
We have done a "bunch" of code splitting using ractive.
And we ended up adding a wrapper til that identifies part's of the app as "widgets" and loads the appropriate js for the widget.
We also introduced POJO view models that have no notion of ractive. Then we have a "layer" between that maps these things together.
Works pretty good, I belive, but for now it is an internal framework only (with very spescific adoptions) but if someone want to have a look at it i'm more than willing to share
foo.htmlis just another component file that should look the same as the one in the example. Also, there is an issue open for a full-scale app example with a few suggestions ractivejs/ractivejs.github.io#74 . I just haven't got to it yet. :D