lib/susanoo/controllers/index.rb in susanoo-0.11.1 vs lib/susanoo/controllers/index.rb in susanoo-0.12.0

- old
+ new

@@ -8,14 +8,16 @@ # Tilt template object template = Tilt.new(File.join(project_root, 'src/index.html.erb')) [200, {'Content-Type' => 'text/html'}, [template.render(self)]] end - def build(generator, route) + def build(generator, options) + platform = options[:platform] + # Configure Sprockets::Helpers (if necessary) Sprockets::Helpers.configure do |config| config.environment = @environment - config.prefix = 'assets' + config.prefix = "/#{platform}_asset/www/assets" config.debug = false end template = Tilt.new(File.join(project_root, 'src/index.html.erb')) data = template.render(self)