in src/_plugins/asset_bundler.rb [23:55]
def render(context)
src = context.registers[:site].source
raw_markup = super(context)
begin
@assets = YAML::load(raw_markup.kind_of?(Array) ? raw_markup.first : raw_markup)
rescue
puts <<-END
Asset Bundler - Error: Problem parsing a YAML bundle
END
end
if !@assets.kind_of?(Array)
puts "Asset Bundler - Error: YAML bundle is not an Array\n#{raw_markup}"
@assets = []
end
add_files_from_list(src, @assets)
markup = ""
@files.each {|k,v|
markup.concat(Bundle.new(v, k, context).markup())
}
markup
end