Sha256: 84d5d675236fe8f6ed2452b668eb5a2f196341cdf5909dba3971355392226ef4

Contents?: true

Size: 692 Bytes

Versions: 2

Compression:

Stored size: 692 Bytes

Contents

require 'rack/app'
module Rack::App::FrontEnd

  require 'tilt'
  require 'tilt/plain'

  require 'rack/app/front_end/version'
  require 'rack/app/front_end/helpers'
  require 'rack/app/front_end/template'
  require 'rack/app/front_end/folder_mounter'
  require 'rack/app/front_end/endpoint_methods'
  require 'rack/app/front_end/singleton_methods'

  class << self

    [:extended, :included].each do |method|
      define_method(method) do |klass|

        klass.__send__(:include, self::EndpointMethods)
        klass.__send__(:extend, self::SingletonMethods)

        klass.on_inheritance do |parent, child|
          child.layout(parent.layout)
        end

      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-app-front_end-0.15.1 lib/rack/app/front_end.rb
rack-app-front_end-0.15.0 lib/rack/app/front_end.rb