lib/susanoo/controllers/views.rb in susanoo-0.11.1 vs lib/susanoo/controllers/views.rb in susanoo-0.12.0
- old
+ new
@@ -13,10 +13,10 @@
fail "There is no '#{path}' in 'src/views' directory."
end
[200, {'Content-Type' => 'text/html'}, [template.render(self)]]
end
- def build(generator, route)
+ def build(generator, options)
file_pattern = File.join(project_root, 'src/views/**/*.{html,html.erb}')
dest_path = File.join(project_root, 'www')
src_path = File.join(project_root, 'src')
Dir.glob(file_pattern) do |file|