Sha256: 8c97c63cfe98cdbf4095fee6618ab2db2a7b20567037e3e40e6f157fb04bb3ab

Contents?: true

Size: 1017 Bytes

Versions: 32

Compression:

Stored size: 1017 Bytes

Contents

module Locomotive
  module Wagon
    module Generators
      module Site

        class Foundation4 < Base

          may_use_haml

          def choose_haml_over_html
            if haml?
              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

          def bundle_install
            super
          end

        end

        Locomotive::Wagon::Generators::Site.register(:foundation4, Foundation4, %{
          A site powered by Foundation (v4.3.2).
        })
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.2.0.beta1 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.1.1 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.1.0 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.1.0.rc5 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.1.0.rc4 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.1.0.rc3 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.1 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc8 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc7 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc6 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc5 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc4 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc3 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc2 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.rc1 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.pre.beta.2 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-1.5.8 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-2.0.0.pre.beta.1 lib/locomotive/wagon/generators/site/foundation4.rb
locomotivecms_wagon-1.5.7 lib/locomotive/wagon/generators/site/foundation4.rb