Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# Prepare the options hash for each format # We need to delete anything relating to the other format here # before we try to render the template. [:html, :text].each do |fmt| opts_hash[fmt] = opts.delete(fmt) opts_hash[fmt] ||= actions[fmt] if actions && actions[fmt] opts_hash[:template] = templates[fmt] if templates && templates[fmt] end
This paste will be private.
From the Design Piracy series on my blog: