Sha256: 909adf37118b55199be2e510d68e8d20736f0568fcb54e5617d117dc545b9176

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

module Stationed
  module Generators
    module Plugins
      module Haml
        def self.prepended(base)
          base.class_option :haml,
            type: :boolean,
            default: true,
            desc: 'Include Haml as template engine'
        end

        def finish_template
          return super unless options[:haml]
          gem 'haml-rails'
          super
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
stationed-0.6.0 lib/stationed/generators/plugins/haml.rb
stationed-0.5.0 lib/stationed/generators/plugins/haml.rb
stationed-0.4.0 lib/stationed/generators/plugins/haml.rb
stationed-0.3.0 lib/stationed/generators/plugins/haml.rb
stationed-0.2.0 lib/stationed/generators/plugins/haml.rb
stationed-0.1.0 lib/stationed/generators/plugins/haml.rb