I have very simple sinatra application up and running. Now I want to use jsTree (jQuery plugin) in my sinatra application.
I do not know how I provide the jQuery support in sinatra. Where I put the files and then how would the <script src="/path/to/jstree.js"></script> look like?
This looks relevant: https://github.com/ezgraphs/jquery-sinatra-demo.
It seems as if you need to create a
/public/folder and put jQuery into there. And from yourindex.htmlfile, just reference it as if it resided in the same directory as theindex.htmlfile: