Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
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