Sha256: a0f4b9f52327777a4bfbef4cbb706a7497ff5dd4abbe00f6579fb0701c24f2f2

Contents?: true

Size: 1.02 KB

Versions: 18

Compression:

Stored size: 1.02 KB

Contents

module Locomotive
  module Wagon
    module Generators
      module Site

        class Bootstrap2 < 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(:bootstrap2, Bootstrap2, %{
          A site with Twitter Bootstrap (v2.3.2) and Font Awesome (v3.2.1).
        })
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.0.0.rc2 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.rc1 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.beta.2 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.8 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.beta.1 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.7 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.6 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.alpha.3 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.alpha.2 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.alpha.1 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-2.0.0.pre.alpha lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.5 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.4 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.3 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.2 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.1 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.0 lib/locomotive/wagon/generators/site/bootstrap2.rb
locomotivecms_wagon-1.5.0.rc1 lib/locomotive/wagon/generators/site/bootstrap2.rb