4 ms·
How easy is it to use it outside of Rails, e.g. in Django?
by erokar 8y ago
How easy is it to use it outside of Rails, e.g. in Django?
- denisw 8y agoStimulus is not bound to Rails in any way. It‘s just an NPM package which can be used whereever you have a JavaScript bundler setup (e.g., Webpack). I‘m not sure whether there is a build that can be embedded directly with a <script> tag.
- always_good 8y agoIt's a matter of including a <script> tag and then reading the caveats. Very likely to work for a traditional server-rendered app.