Calculate template names based on main template and view name