Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def opts_to_hash(opts_string) opts_hash = {} arr = opts_string.split(';;') arr.each do |option| option = option.split("=") key, value = option[0].strip, option[1].strip opts_hash[key] = value end opts_hash rescue => e raise "error in template_filter.rb: opts_to_hash()" end
This paste will be private.
From the Design Piracy series on my blog: