Sha256: db8b61a59116f966635b1a5896307846f0efc8f3fc2139e76a6b0958c150270d
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
# frozen_string_literal: true module <%= object.app_name %> class <%= object.name_as_class %>View < Vedeu::ApplicationView def render Vedeu.renders do # Build up the view programmatically... # # view '<%= object.name %>' do # lines do # line 'some content...' # end # end # ...or use the template in 'app/views/templates/<%= object.name %>' # template_for('<%= object.name %>', template('<%= object.name %>'), object, options) end end private def object end def options {} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu_cli-0.0.10 | lib/vedeu/cli/templates/application/app/views/name.erb |
vedeu_cli-0.0.9 | lib/vedeu/cli/templates/application/app/views/name.erb |