Use Padrino and sprockets with sprockets-helpers
Thanks to @arthur_chiu and his post on how to integrate sprockets in Padrino with sprockets-helpers, i’ve create my version :D:D:D:D 1) Create padrino-sprockets in config/sprockets.rb module Padrino::Sprockets def self.registered(base) base.set :sprockets, ::Sprockets::Environment.new(Padrino.root) # Add folder base.sprockets.append_path 'assets/javascripts' base.sprockets.append_path 'assets/stylesheets' base.sprockets.append_path 'assets/images' base.set :digest_assets, true # compress file if PADRINO_ENV == 'development' base.sprockets.js_compressor = Uglifier.new(mangle: true) base.sprockets.css_compressor = YUI::CssCompressor.new end # sprockets-helpers base.helpers Sprockets::Helpers # We can configure \`sprockets-helpers\` to find the correct assets for us....