Sha256: 768d6d99a7b5a2fe7b4c230c4a5fc956c14f3be95ca46f894a5ed5ea6015137a
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
require 'generators/cells/base' module Erb module Generators class WidgetGenerator < ::Cells::Generators::Base source_root File.expand_path('../../templates', __FILE__) def create_views for state in actions do @state = state @path = File.join('app/widgets', file_name, "#{state}.html.erb") template "view.erb", @path end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apotomo-1.1.0 | lib/generators/erb/widget_generator.rb |
apotomo-1.1.0.rc1 | lib/generators/erb/widget_generator.rb |