Sha256: 4596cb390f24a6f941f32a248bc885ea4c7fbd978c65c11cd37f915e0d9a31ec

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

say 'Mounting Engine'
insert_into_file(
  'config/routes.rb',
  %(mount Templates::Engine => '/' if Rails.env.development?),
  before: /\s*end/
)
append_to_file 'config/routes.rb', %(mount Templates::Engine => '/' if Rails.env.development?\n), before: "\nend"

say 'Creating Templates Directory'
file_create 'app/views/templates/example.html.erb', "<%= provide(:title, 'Example') %>\nExample"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
templates-rails-0.1.3 lib/install/templates.rb
templates-rails-0.1.2 lib/install/templates.rb
templates-rails-0.1.1 lib/install/templates.rb
templates-rails-0.1.0 lib/install/templates.rb