should be $t->{twig_xp}->set_var($name, $value);  I think