Sha256: 1ac6cb2a481caf1cf6f20b9f43c6a3e6364c96226fa39e2109879c805c016bf0

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

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

  require 'tilt'
  require 'tilt/plain'

  require 'rack/app/front_end/utils'
  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)

          child.helpers do
            include(parent.helpers)
          end

        end

      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-app-front_end-0.17.0 lib/rack/app/front_end.rb