Class: Ember::Generators::TemplateGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
GeneratorHelpers
Defined in:
lib/generators/ember/template_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_template_filesObject


12
13
14
15
# File 'lib/generators/ember/template_generator.rb', line 12

def create_template_files
  file_path = File.join(app_path, 'templates', class_path, "#{file_name}.hbs")
  template 'template.hbs', file_path
end