class Bootswatch::Generators::LayoutGenerator

Public Instance Methods

generate_layout() click to toggle source
# File lib/generators/bootswatch/layout/layout_generator.rb, line 16
def generate_layout
  app = ::Rails.application
  ext = app.config.generators.options[:rails][:template_engine] || :erb
  template "layout.html.#{ext}", "app/views/layouts/#{theme_name}.html.#{ext}", {theme_name: theme_name, app_name: application_name}
end
theme_name() click to toggle source
# File lib/generators/bootswatch/layout/layout_generator.rb, line 12
def theme_name
  file_name
end