Sha256: e822cec43672cca30128716728f670f5068f2d29dbc621cda373883766ad0483

Contents?: true

Size: 641 Bytes

Versions: 11

Compression:

Stored size: 641 Bytes

Contents

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 options
      {}
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vedeu-0.4.49 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.48 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.47 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.46 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.45 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.44 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.43 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.42 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.41 lib/vedeu/generator/templates/application/app/views/name.erb
vedeu-0.4.40 lib/vedeu/generator/templates/application/app/views/name.erb
vedeu-0.4.39 lib/vedeu/generator/templates/application/app/views/name.erb