Serve jquery static files in flatiron
Serve jquery static file in flatiron
npm install flatiron-jquery
At its core
flatiron-jquery is a broadway-compatible plugin which can be used by any flatiron http application with a static serving plugin
var flatiron = require'flatiron'path = require'path'app = flatironapp;appconfigfile file: pathjoin__dirname 'config' 'config.json' ;appuseflatironpluginshttp;appuseflatironpluginsstatic;appuserequire'flatiron-jquery';approuterget'/'thisresjson 'hello': 'world';appstart3000;
Now start the server with
and the following url will serve jquery.min.js whose version is defined in package.json
The version of this package is equal to the version of jquery served.
If you like this project, please watch this and follow me.
Here is a list of Contributors
I accept pull requests and guarantee a reply back within a day
Report here. Guaranteed reply within a day.
Pavan Kumar Sunkara (email@example.com)