Class: Vileda::Generators::LayoutGenerator

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

Instance Method Summary collapse

Methods inherited from Base

banner, source_root

Instance Method Details

#create_layoutObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/generators/vileda/layout/layout_generator.rb', line 8

def create_layout
  template 'layout.html.erb', "app/views/layouts/#{file_name}.html.erb"
  copy_file 'style.css', "public/stylesheets/#{file_name}.css"
  copy_file 'flash.css', "public/stylesheets/flash.css"
  copy_file 'handheld.css', "public/stylesheets/handheld.css"
  copy_file 'forms.css', "public/stylesheets/forms.css"
  copy_file 'layout_helper.rb', 'app/helpers/layout_helper.rb'
  copy_file 'error_messages_helper.rb', 'app/helpers/error_messages_helper.rb'
  copy_file 'js/dd_belatedpng.js', 'public/javascripts/dd_belatedpng.js'
  copy_file 'js/jquery.js', 'public/javascripts/jquery.js'
  copy_file 'js/modernizr-1.5.min.js', 'public/javascripts/modernizr-1.5.min.js'
  copy_file 'js/plugins.js', 'public/javascripts/plugins.js'
  copy_file 'js/script.js', 'public/javascripts/script.js'
  copy_file 'js/profiling/charts.swf', 'public/javascripts/profiling/charts.swf'
  copy_file 'js/profiling/config.js', 'public/javascripts/profiling/config.js'
  copy_file 'js/profiling/yahoo-profiling.css', 'public/javascripts/profiling/yahoo-profiling.css'
  copy_file 'js/profiling/yahoo-profiling.min.js', 'public/javascripts/profiling/yahoo-profiling.min.js'
  copy_file 'favicon.ico', 'public/favicon.ico'
  copy_file 'apple-touch-icon.png', 'public/apple-touch-icon.png'
end