Class: Joosy::Generators::PageGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_filesObject



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

def create_files
  super

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

  create_file "#{app_path}/templates/pages/#{namespace_path}/#{file_name}.jst.#{options[:template_kind]}"
end