renderTemplate accepts arguments instead of options