def code
      # Start with config code
      initializer_code = @client ? generate_config_code : ''
      component_code = ''

      asset_files = AssetFiles.from_cache(@volt_app.app_url, @component_name, @component_paths)
      asset_files.component_paths.each do |component_path, component_name|
        comp_template = ComponentTemplates.new(component_path, component_name, @client)
        initializer_code << comp_template.initializer_code + "\n\n"
        component_code << comp_template.component_code + "\n\n"
      end

      initializer_code + component_code
    end
def code
      # Start with config code
      initializer_code = @client ? generate_config_code : ''
      component_code = ''

      asset_files = AssetFiles.from_cache(@volt_app.app_url, @component_name, @component_paths)
      asset_files.component_paths.each do |component_path, component_name|
        comp_template = ComponentTemplates.new(component_path, component_name, @client)
        initializer_code << comp_template.initializer_code + "\n\n"
        component_code << comp_template.component_code + "\n\n"
      end

      initializer_code + component_code
    end
def code # Start with config code initializer_code = @client ? generate_config_code : '' component_code = '' asset_files = AssetFiles . from_cache ( @volt_app . app_url , @component_name , @component_paths ) asset_files . component_paths . each do | component_path , component_name | comp_template = ComponentTemplates . new ( component_path , component_name , @client ) initializer_code << comp_template . initializer_code + "\n\n" component_code << comp_template . component_code + "\n\n" end initializer_code + component_code end
The client argument is for if this code is being generated for the client
The client argument is for if this code is being generated for the client