The application is not using the standard asset pipeline due to having some of the javascript being rendered dynamically by controller variables.
I’d like to minify the js before appending/inline-ing it into the html file that it would be served out from.
I’ve tried <render :partial => 'javascript.js'> which is the standard way to render a partial in an erb.
Ideally i’d just be able to do <render :partial => Minify.new.minify('javascript.js')> to render out a minified version of the js
You can try the uglifier gem (http://rubygems.org/gems/uglifier), I don’t know about the performance, but you can do something like: