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

#application_name, #class_name, #configuration, #ember_path, #engine_extension, #engine_name, #handlebars_template_path, #rails_engine?

Instance Method Details

#create_template_filesObject



16
17
18
19
# File 'lib/generators/ember/template_generator.rb', line 16

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