lib/nanoc/helpers/capturing.rb in nanoc-4.3.7 vs lib/nanoc/helpers/capturing.rb in nanoc-4.3.8
- old
+ new
@@ -65,10 +65,11 @@
if @item.nil? || item != @item.unwrap
dependency_tracker = @config._context.dependency_tracker
dependency_tracker.bounce(item.unwrap)
unless rep.compiled?
- raise Nanoc::Int::Errors::UnmetDependency.new(rep)
+ Fiber.yield(Nanoc::Int::Errors::UnmetDependency.new(rep))
+ return content_for(*args, &block)
end
end
rep.snapshot_contents["__capture_#{name}".to_sym]
end