Sha256: bca2a72d31528ef67858e851398709d8f3b89114345c91317ea1f1dad189d4ae
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
module Playmo module Recipes class LayoutRecipe < Playmo::Recipe source_root File.expand_path('../templates/layout_recipe', __FILE__) def setup silently do remove_file 'app/views/layouts/application.html.erb' Event.events.listen(:after_install) do |event_data| 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playmo-0.0.11 | lib/playmo/recipes/layout_recipe.rb |
playmo-0.0.10 | lib/playmo/recipes/layout_recipe.rb |