Sort replacements
Add support for ruby templating languages