expect as template var