convert to erb template