Sha256: b290600979168f1f25e7498706df29126d12f45ac6e8edcb086f7b670277c2a7

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

module LB
  module Project
    # Base view
    class View < Dry::View::Controller
      extend LB::Project::Registry::Registration[:view]

      def self.setup(view)
        view.setting :paths, [LB::Project.template_path]
        view.setting :layout, 'main'
      end

      def view_locals(options)
        options
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lb-project-0.1.1 lib/lb/project/view.rb
lb-project-0.1.0 lib/lb/project/view.rb
lb-project-0.0.1 lib/lb/project/view.rb