Sha256: d92012cb5cbc2233a1d78e7e9c01398765e27a96c6d430286533d6527db0d6e5

Contents?: true

Size: 828 Bytes

Versions: 10

Compression:

Stored size: 828 Bytes

Contents

require 'rails/generators'
require File.expand_path('../utils', __FILE__)

module RocketCms
  class LayoutGenerator < Rails::Generators::Base
    source_root File.expand_path("../../../..", __FILE__)
    include Generators::Utils::InstanceMethods

    desc 'RocketCMS Layout generator'
    def layout
      template('app/views/layouts/application.slim', 'app/views/layouts/application.slim')
      template('app/views/components/_header.slim', 'app/views/components/_header.slim')
      template('app/views/components/_footer.slim', 'app/views/components/_footer.slim')
      template('app/views/components/_counters.html', 'app/views/components/_counters.html')
      template('app/views/home/index.slim', 'app/views/home/index.slim')
      template('app/views/pages/show.slim', 'app/views/pages/show.slim')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocket_cms-0.37.1 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.37.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.36.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.35.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.34.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.33.1 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.33.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.32.0 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.31.1 lib/generators/rocket_cms/layout_generator.rb
rocket_cms-0.31.0 lib/generators/rocket_cms/layout_generator.rb