Browse files

removed presenter generator

  • Loading branch information...
1 parent ba0be12 commit 54ab2cb38d1418c149f6f769238adebf175e7463 Mark Evans committed Feb 28, 2012
View
7 lib/generators/egg/presenter/USAGE
@@ -1,7 +0,0 @@
-Description:
-Generates an egg presenter
-
-Example:
- rails generate egg:presenter tab_set
-
- This will create a presenter file for TabSet
View
18 lib/generators/egg/presenter/presenter_generator.rb
@@ -1,18 +0,0 @@
-module Egg
- class PresenterGenerator < ::Rails::Generators::NamedBase
- source_root File.expand_path('../templates', __FILE__)
-
- argument :name, :type => :string
-
- def create_stuff
- template "presenter.coffee.erb", "app/assets/javascripts/shared/presenters/#{presenter_name}.coffee"
- end
-
- private
-
- def presenter_name
- "#{name}".underscore
- end
-
- end
-end
View
4 lib/generators/egg/presenter/templates/presenter.coffee.erb
@@ -1,4 +0,0 @@
-class @<%= presenter_name.camelize %> extends egg.Base
-
- @init (opts)->
- # Initialization here

0 comments on commit 54ab2cb

Please sign in to comment.