Class: RocketCms::LayoutGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Generators::Utils::InstanceMethods
Defined in:
lib/generators/rocket_cms/layout_generator.rb

Instance Method Summary collapse

Methods included from Generators::Utils::InstanceMethods

#ask_for, #display

Instance Method Details

#layoutObject



10
11
12
13
14
15
16
17
# File 'lib/generators/rocket_cms/layout_generator.rb', line 10

def layout
  template('app/views/layouts/application.slim', 'app/views/layouts/application.slim')
  template('app/views/components/_header.slim', 'app/views/components/_header.slim')
  template('app/views/components/_footer.slim', 'app/views/components/_footer.slim')
  template('app/views/components/_counters.html', 'app/views/components/_counters.html')
  template('app/views/home/index.slim', 'app/views/home/index.slim')
  template('app/views/pages/show.slim', 'app/views/pages/show.slim')
end