adding stack based directory traversal for viewName.tt