Add comment support to templates.