Add a usage example for assigning closures to templates