class Middleman::Sources
def changed(matcher=nil, &block)
-
matcher
(nil, Regexp
) -- A Regexp to match the change path against
def changed(matcher=nil, &block) on_change :source do |updated, _removed| updated.select { |f| matcher.nil? ? true : matches?(matcher, f) }.each do |f| block.call(f[:relative_path]) end end end