Class: Easymin::Generators::LayoutGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/easymin/layout/layout_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_layoutObject



9
10
11
12
13
# File 'lib/generators/easymin/layout/layout_generator.rb', line 9

def generate_layout
  path = "app/views/layouts"
  
  template 'easymin.haml', "#{path}/#{options.name}.html.haml"
end