diff --git a/src/Exscript/util/template.py b/src/Exscript/util/template.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/util/template.py
+++ b/src/Exscript/util/template.py
@@ -20,7 +20,7 @@ from Exscript.interpreter import Parser
 
 def _compile(conn, filename, template, parser_kwargs, **kwargs):
     if conn:
-        kwargs.update(conn.get_host().vars)
+        kwargs.update(conn.get_host().get_all())
 
     # Init the parser.
     parser = Parser(**parser_kwargs)
fix: Exscript.util.template.run() on hosts that have no variables defined.