Sha256: 0a0a7fcbeb975d6bac04e31aba206a5d03fbc5433a390150506bfb32a3d22544
Contents?: true
Size: 424 Bytes
Versions: 2
Compression:
Stored size: 424 Bytes
Contents
require 'generators/cells/base' module Haml 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.haml") template "view.haml", @path end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apotomo-1.1.0 | lib/generators/haml/widget_generator.rb |
apotomo-1.1.0.rc1 | lib/generators/haml/widget_generator.rb |