Minor, whitespace after , in |k,v|. Also, how about |tag, content| for the variable names for self-documentation.