Sha256: 178fc876584f7023ca4e66807747b33b6937a260ff55c2a47f90364cc15f361e
Contents?: true
Size: 975 Bytes
Versions: 1
Compression:
Stored size: 975 Bytes
Contents
module Locomotive module Wagon module Generators module Site class Foundation < Base def choose_haml_over_html if yes?('Do you prefer HAML templates ?') remove_file File.join(self.destination, 'app/views/pages/index.liquid') remove_file File.join(self.destination, 'app/views/pages/404.liquid') remove_file File.join(self.destination, 'app/views/snippets/footer.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') remove_file File.join(self.destination, 'app/views/snippets/footer.liquid.haml') end end end Locomotive::Wagon::Generators::Site.register(:foundation, Foundation, %{ A LocomotiveCMS site powered by Foundation (v4.3.2). }) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotivecms_wagon-1.4.0 | lib/locomotive/wagon/generators/site/foundation.rb |