Ruby on Rails: How to organize properly JS and CSS files? -
i use slickgrid plugin in rails 3 application. contains several js , css files should include in html page.
it possible put needed js files in public/javascripts
directory , css files in public/stylesheets
directory. however, don't solution because breaks plugin package files structure.
i put plugin files in 1 place (i thought vendor/plugins
, better place?), , include needed files there. possible ?
what proper way include js , css files when integrating plugin ?
i think jammit can accomplish you're trying do. besides packaging, embedding, gzipping assets, allows store javascript , stylesheets anywhere in app. images (if not embedded) problem though.
Comments
Post a Comment