templates.foreach