lib/nanoc/base/source_data/item.rb in nanoc-3.6.5 vs lib/nanoc/base/source_data/item.rb in nanoc-3.6.6

- old
+ new

@@ -31,11 +31,11 @@ # @return [String] This item's raw, uncompiled content of this item (only # available for textual items) attr_reader :raw_content # @return [String] The filename pointing to the file containing this - # item’s content (only available for binary items) + # item’s content attr_reader :raw_filename # @return [Nanoc::Site] The site this item belongs to attr_accessor :site @@ -80,9 +80,10 @@ # Get type and raw content or raw filename @is_binary = params[:binary] if @is_binary @raw_filename = raw_content_or_raw_filename else + @raw_filename = attributes[:content_filename] @raw_content = raw_content_or_raw_filename end # Get rest of params @attributes = attributes.symbolize_keys_recursively