closure template dependency