format view template files