Check for missing variables within renderTemplate, to achieve
this we must pass "keys" to renderTemplate from all calling functions
and use ellipsis arguments to pass variable checkvars through enclosing
functions.