lib/nanoc/base/views/item_rep_view.rb in nanoc-4.5.2 vs lib/nanoc/base/views/item_rep_view.rb in nanoc-4.5.3

- old
+ new

@@ -41,11 +41,11 @@ # any). # # @return [String] The content at the given snapshot. def compiled_content(snapshot: nil) @context.dependency_tracker.bounce(unwrap.item, compiled_content: true) - @item_rep.compiled_content(snapshot: snapshot) + @context.snapshot_repo.compiled_content(rep: unwrap, snapshot: snapshot) 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 @@ -73,10 +73,10 @@ @item_rep.raw_path(snapshot: snapshot) end # @api private def binary? - @item_rep.binary? + @context.snapshot_repo.get(unwrap, :last).binary? end def inspect "<#{self.class} item.identifier=#{item.identifier} name=#{name}>" end