Sha256: 0caeed5263308ecc31715c5f3d7c8f72d3ef95ee1773d0c7faffcd163b20a522

Contents?: true

Size: 697 Bytes

Versions: 5

Compression:

Stored size: 697 Bytes

Contents

module Playmo
  module Recipes
    class LayoutRecipe < Playmo::Recipe
      source_root File.expand_path('../templates/layout_recipe', __FILE__)

      def setup
        silently do
          Event.events.listen(:after_install) do |event_data|
            remove_file 'app/views/layouts/application.html.erb'
            generate :layout, "application #{retrieve(:markup)}"
          end
        end
      end
    end
  end
end

# Write down this recipe to our Cookbook if it's available
require File.dirname(__FILE__) + '/javascript_framework_recipe'
Playmo::Cookbook.instance.insert_after(Playmo::Recipes::JavascriptFrameworkRecipe, Playmo::Recipes::LayoutRecipe) if defined?(Playmo::Cookbook)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playmo-0.0.18 lib/playmo/recipes/layout_recipe.rb
playmo-0.0.17 lib/playmo/recipes/layout_recipe.rb
playmo-0.0.14 lib/playmo/recipes/layout_recipe.rb
playmo-0.0.13 lib/playmo/recipes/layout_recipe.rb
playmo-0.0.12 lib/playmo/recipes/layout_recipe.rb