Sha256: f57a307b1b30a0f0f705f3ec7642be1f0af0a0bab27743e04dbbaffb88a38cd4
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
module Trailblazer module Generators class ViewGenerator < Cell # Trailblazer::Generators::Cell def create_views for state in actions do @state = state @path = File.join(base_path, "views/#{state}.#{handler}") #base_path defined in Cells::Generators::Base. template "view.#{handler}", @path end end private def handler raise "Please implement #handler in your view generator and return something like `:erb`." end end end end
Version data entries
4 entries across 4 versions & 1 rubygems