lib/stationed/generators/plugins/haml.rb in stationed-0.0.1 vs lib/stationed/generators/plugins/haml.rb in stationed-0.1.0
- old
+ new
@@ -1,9 +1,17 @@
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