You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The binary-ness of an item is determined from the :last snapshot, rather than the snapshot that is being requested. It is therefore not possible to access the textual content of a textual snapshot, if the item’s :last snapshot is binary.
Steps to reproduce
Given:
File content/foo.md with content [<%= @items["/bar.*"].compiled_content(snapshot: :raw) %>]
The binary-ness of an item is determined from the
:last
snapshot, rather than the snapshot that is being requested. It is therefore not possible to access the textual content of a textual snapshot, if the item’s:last
snapshot is binary.Steps to reproduce
Given:
File
content/foo.md
with content[<%= @items["/bar.*"].compiled_content(snapshot: :raw) %>]
File
content/bar.md
with content 'I am bar!'File
Rules
:File
lib/default.rb
:When: compiling
Then: Nanoc throws a “cannot access binary content” error.
Nanoc should return the textual content instead.
The text was updated successfully, but these errors were encountered: