lib/susanoo/controllers/index.rb in susanoo-0.7.0 vs lib/susanoo/controllers/index.rb in susanoo-0.7.1

- old
+ new

@@ -9,9 +9,15 @@ template = Tilt.new(File.join(project_root, 'src/index.html.erb')) [200, {'Content-Type' => 'text/html'}, [template.render(self)]] end def build(generator) + # Configure Sprockets::Helpers (if necessary) + Sprockets::Helpers.configure do |config| + config.environment = @environment + config.prefix = 'assets' + end + template = Tilt.new(File.join(project_root, 'src/index.html.erb')) data = template.render(self) # God forgive me for hard coding this part generator.create_file 'www/index.html', data end