Sha256: 29ea517540cf82837f6bca50c5de3384cdd42997837a517af470d57eca844cdc

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require 'generators/cells/base'

module Haml
  module Generators
    class CellGenerator < ::Cells::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      def create_views
        for state in actions do
          @state  = state
          @path   = File.join('app/cells', file_name, "#{state}.html.haml")

          template "view.haml", @path
        end
      end
    end
  end
end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cells-3.5.4 lib/generators/haml/cell_generator.rb
cells-3.5.2 lib/generators/haml/cell_generator.rb
cells-3.5.1 lib/generators/haml/cell_generator.rb
cells-3.5.0 lib/generators/haml/cell_generator.rb
cells-3.5.0.beta2 lib/generators/haml/cell_generator.rb