Sha256: 600286ceff3c564964c46f4a56f49de53077c745a681bdf9a3f8b57a3e090fae
Contents?: true
Size: 581 Bytes
Versions: 7
Compression:
Stored size: 581 Bytes
Contents
module Nanoc class PostCompileItemRepView < ::Nanoc::ItemRepView def compiled_content(snapshot: nil) if unwrap.binary? raise Nanoc::Int::Errors::CannotGetCompiledContentOfBinaryItem.new(unwrap) end snapshot_contents = @context.compiler.compiled_content_cache[unwrap] snapshot_name = snapshot || (snapshot_contents[:pre] ? :pre : :last) if snapshot_contents[snapshot_name] snapshot_contents[snapshot_name].string else raise Nanoc::Int::Errors::NoSuchSnapshot.new(unwrap, snapshot_name) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems