Class: Joosy::Generators::LayoutGenerator

Inherits:
Rails::Generators::JoosyBase show all
Defined in:
lib/rails/generators/joosy/layout_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_filesObject



8
9
10
11
12
13
14
# File 'lib/rails/generators/joosy/layout_generator.rb', line 8

def create_files
  super

  template "app/layouts/template.js.coffee", "#{app_path}/layouts/#{file_name}.js.coffee"

  create_file("#{app_path}/templates/layouts/#{file_name}.jst.#{options[:template_kind]}")
end