Textmate Command to Change HTML Attributes to Ruby Options
#!/usr/bin/env ruby def to_options(str) str.gsub(/((\s|^)(\w+))(=)/i) {|v| ", :#{$3} #{$4}> "} end print to_options(STDIN.read)