lib/nanoc/base/views/item_rep_view.rb in nanoc-4.5.4 vs lib/nanoc/base/views/item_rep_view.rb in nanoc-4.6.0

- old
+ new

@@ -44,9 +44,14 @@ def compiled_content(snapshot: nil) @context.dependency_tracker.bounce(unwrap.item, compiled_content: true) @context.snapshot_repo.compiled_content(rep: unwrap, snapshot: snapshot) end + def snapshot?(name) + @context.dependency_tracker.bounce(unwrap.item, compiled_content: true) + @item_rep.snapshot?(name) + end + # Returns the item rep’s path, as used when being linked to. It starts # with a slash and it is relative to the output directory. It does not # include the path to the output directory. It will not include the # filename if the filename is an index filename. #