switching templates to ERB