lib/generators/app_themer/views/views_generator.rb in app-themer-0.3.5 vs lib/generators/app_themer/views/views_generator.rb in app-themer-0.4.0
- old
+ new
@@ -106,10 +106,10 @@
end
end
def generate_haml_views(views)
require 'haml'
- Dir.mktmpdir('web-app-theme-haml') do |haml_root|
+ Dir.mktmpdir('app-themer-haml') do |haml_root|
views.each do |template_name, output_path|
tmp_html_path = "#{haml_root}/#{template_name}"
tmp_haml_path = "#{haml_root}/#{template_name}.haml"
template template_name, tmp_html_path, :verbose => false
`html2haml --erb --xhtml #{tmp_html_path} #{tmp_haml_path}`