class Ember::Generators::ComponentGenerator
Public Instance Methods
create_component_files()
click to toggle source
# File lib/generators/ember/component_generator.rb, line 16 def create_component_files dashed_file_name = file_name.gsub(/_/, '-') comp_path = File.join(ember_path, 'components', class_path, "#{dashed_file_name}_component.#{engine_extension}") template "component.#{engine_extension}", comp_path templ_path = File.join(ember_path, 'templates/components', class_path, "#{dashed_file_name}.hbs") template "component.template.hbs", templ_path end