lib/susanoo/controllers/views.rb in susanoo-0.8.0 vs lib/susanoo/controllers/views.rb in susanoo-0.10.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)
+ def build(generator, route)
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|