Sha256: c7badee7e458a3e895c1be292541f469e48b382075c7cf35e938a2573d6775af
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 KB
Contents
module Locomotive module Wagon module Generators module Site class Foundation < Base def copy_sources directory('.', self.destination, { recursive: true }, { name: self.name, version: Locomotive::Wagon::VERSION }) end 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.2.1). }) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems