Class: Starter::StyleGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/starter/style/style_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_layoutObject



11
12
13
14
15
16
17
18
19
# File 'lib/generators/starter/style/style_generator.rb', line 11

def generate_layout
  if bootswatch_theme?
    log :insert, "Bootswatch theme '#{theme_name}'"
  else
    log :insert, 'Bootstrap CSS framework'
  end
  log :insert, 'FontAwesome support'
  template "layout.html.erb", "app/views/layouts/#{layout_file}.html.erb" if options[:layout]
end