Add default value to renderHtmlTemplate function