3 ms·
A modest JavaScript framework for the HTML you already have Are they implying one shouldn't use it if you don't have any HTML already?
by Scarbutt 6y ago
A modest JavaScript framework for the HTML you already have
Are they implying one shouldn't use it if you don't have any HTML already?
- ansonhoyt 6y agoYes. It is for "JS Sprinkles" on your existing HTML. This makes it "modest" compared to something like React that would typically generate HTML/DOM for you. To understand their philosophy, see DHH's blog post announcing Stimulus 1.0, https://m.signalvnoise.com/stimulus-1-0--a-modest-javascript-framework-for-the-html-you-already-have/ https://m.signalvnoise.com/stimulus-1-0--a-modest-javascript...
- hirako2000 6y agoThe idea is you render the html as is. The data attributes take care of the interactive parts, with the js scripts loaded after the page renders (as opposed to render html within js that executes on load with, the reactjs render() call).