Sha256: 3289716d3a9b0373d931148e4e1ba1410c666aa3d47e03fd8441c8ce260de1fe
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
# frozen_string_literal: true require "pakyow/support/extension" require "pakyow/plugin" module Pakyow module Presenter module Behavior module Initializing extend Support::Extension apply_extension do unless ancestors.include?(Plugin) after "load", "load.presenter" do state(:templates) << Templates.new( :default, config.presenter.path, processor: ProcessorCaller.new( state(:processor) ) ) state(:templates) << Templates.new(:errors, File.join(File.expand_path("../../../", __FILE__), "views", "errors")) end after "load.plugins" do # Load plugin frontend after the app so that app has priority. # @plugs.each(&:load_frontend) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pakyow-presenter-1.0.0.rc1 | lib/pakyow/presenter/behavior/initializing.rb |