Make query template system uses erb. instead of regex replace.