Sha256: 6888d41c8c6e59522d0ec7de5014bd22824e13203a1ce4af9bae3d62dd6b221a

Contents?: true

Size: 385 Bytes

Versions: 11

Compression:

Stored size: 385 Bytes

Contents

class TemplateGenerator < Rails::Generator::NamedBase

  def manifest
    record do |m|

      template_name = "#{file_name}"

      m.directory File.join('app/views/layouts/templates')
      m.template 'template.erb', File.join('app/views/layouts/templates', "#{template_name}.html.erb")

    end
  end

  protected
  def banner
    "Usage: #{$0} #{spec.name} template_name"
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
browsercms-3.1.5 rails_generators/template/template_generator.rb
browsercms-3.1.4 rails_generators/template/template_generator.rb
browsercms-3.1.3 rails_generators/template/template_generator.rb
drujensen-browsercms-3.2.0 rails_generators/template/template_generator.rb
browsercmsi-3.1.2 rails_generators/template/template_generator.rb
browsercms-3.1.2 rails_generators/template/template_generator.rb
browsercms-3.1.1 rails_generators/template/template_generator.rb
browsercmsi-3.1.1 rails_generators/template/template_generator.rb
browsercmsi-3.1.0 rails_generators/template/template_generator.rb
browsercms-3.1.0 rails_generators/template/template_generator.rb
we5-browsercms-3.1.0 rails_generators/template/template_generator.rb