Class: Ember::Generators::ViewGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/ember/view_generator.rb

Instance Method Summary collapse

Methods included from GeneratorHelpers

#app_path, #application_name, #class_name, #config_path, #configuration, #engine_name, #handlebars_template_path, #javascript_assets_path, #rails_engine?, #require_name

Instance Method Details

#create_view_filesObject


13
14
15
16
17
# File 'lib/generators/ember/view_generator.rb', line 13

def create_view_files
  file_path = File.join(app_path, 'views', class_path, "#{file_name}.es6")
  template "view.es6", file_path
  invoke('ember:template', [ name ], options) unless options[:without_template]
end