Add parameters to enable globalvariable injection in renderHtmlTemplate function