turning templates into erb templates