Sha256: 5c0150a61bbb8c9cea29369f2a74abe08f66344e1dca200ee6e844e13aef4c5b

Contents?: true

Size: 547 Bytes

Versions: 7

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  class Application
    module Behavior
      module Presenter
        module Watching
          extend Support::Extension

          apply_extension do
            after "load" do
              ([:html] + state(:processor).map(&:extensions).flatten).uniq.each do |extension|
                config.process.watched_paths << File.join(config.presenter.path, "**/*.#{extension}")
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-presenter-1.0.6 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.5 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.4 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.3 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.2 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.1 lib/pakyow/application/behavior/presenter/watching.rb
pakyow-presenter-1.0.0 lib/pakyow/application/behavior/presenter/watching.rb