Add basic template api class and template var.