Sha256: 5b4ea213c2151b7c28c32b78f53f1c6043660e8d99ecf7c74163766f2daa35de

Contents?: true

Size: 665 Bytes

Versions: 35

Compression:

Stored size: 665 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 object
    end

    def options
      {}
    end

  end

end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
vedeu_cli-0.0.8 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.7 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.6 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.5 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.4 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.3 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.2 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu_cli-0.0.1 lib/vedeu/cli/templates/application/app/views/name.erb
vedeu-0.5.10 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.9 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.8 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.7 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.6 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.5 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.4 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.3 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.2 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.1 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.5.0 lib/vedeu/cli/generator/templates/application/app/views/name.erb
vedeu-0.4.65 lib/vedeu/cli/generator/templates/application/app/views/name.erb