lib/locomotive/wagon/generators/site/blank.rb in locomotivecms_wagon-1.4.0 vs lib/locomotive/wagon/generators/site/blank.rb in locomotivecms_wagon-1.5.0.rc1

- old
+ new

@@ -3,22 +3,29 @@ module Generators module Site class Blank < Base + may_use_haml + def choose_haml_over_html - if yes?('Do you prefer HAML templates ?') + if haml? remove_file File.join(self.destination, 'app/views/pages/index.liquid') remove_file File.join(self.destination, 'app/views/pages/404.liquid') else remove_file File.join(self.destination, 'app/views/pages/index.liquid.haml') remove_file File.join(self.destination, 'app/views/pages/404.liquid.haml') end end + + def bundle_install + super + end + end Locomotive::Wagon::Generators::Site.register(:blank, Blank, %{ - A blank LocomotiveCMS site with the minimal files. + A blank site with the minimal files. }) end end end end \ No newline at end of file