Sha256: 9aa544927fb825818366d3885523a011e321f1b9dcb3b3418488717c246128f7
Contents?: true
Size: 592 Bytes
Versions: 6
Compression:
Stored size: 592 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.compilation_context.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
6 entries across 6 versions & 1 rubygems