Sha256: ce3650796161cdfb6c207edabd489cffbdc50e278a2fc2d20a13d1e66ce64bab

Contents?: true

Size: 475 Bytes

Versions: 12

Compression:

Stored size: 475 Bytes

Contents

module Pah
  module Templates
    class Layout < Pah::Template
      def call
        copy_static_file 'app/views/layouts/application.html.slim'
        copy_static_file 'app/views/application/_flash_messages.html.slim'

        gsub_file 'app/views/layouts/application.html.slim', /= page_title(app_name: 'example')/, "= page_title(app_name: '#{Pah.configuration.app_name}')"

        git add: 'app/views/'
        git_commit 'Add layout files.'
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pah-0.0.28 lib/pah/templates/layout.rb
pah-0.0.27 lib/pah/templates/layout.rb
pah-0.0.26 lib/pah/templates/layout.rb
pah-0.0.25 lib/pah/templates/layout.rb
pah-0.0.24 lib/pah/templates/layout.rb
pah-0.0.23 lib/pah/templates/layout.rb
pah-0.0.22 lib/pah/templates/layout.rb
pah-0.0.21 lib/pah/templates/layout.rb
pah-0.0.20 lib/pah/templates/layout.rb
pah-0.0.19 lib/pah/templates/layout.rb
pah-0.0.17 lib/pah/templates/layout.rb
pah-0.0.16 lib/pah/templates/layout.rb