pos may be nil if the template is not coming from the spec file and therefore
there's no reason to print out spec file location in an error message. If
template execution fails because of a missing input variable, the error will
be wrapped in a UnknownVarErr.