Pass var to template