lib/generators/full.rb in merb-slices-0.9.4 vs lib/generators/full.rb in merb-slices-0.9.5

- old
+ new

@@ -1,13 +1,22 @@ module Merb::Generators - class FullSliceGenerator < NamedGenerator + class FullSliceGenerator < BaseSliceGenerator def self.source_root File.join(File.dirname(__FILE__), 'templates', 'full') end glob! + + common_template :javascript, 'public/javascripts/master.js' + common_template :stylesheet, 'public/stylesheets/master.css' + + common_template :license, 'LICENSE' + + common_template :merbtasks, 'lib/%base_name%/merbtasks.rb' + common_template :slicetasks, 'lib/%base_name%/slicetasks.rb' + common_template :spectasks, 'lib/%base_name%/spectasks.rb' first_argument :name, :required => true def destination_root File.join(@destination_root, base_name) \ No newline at end of file