import jinja2


def fillHTMLTemplate(templateString, params):
    """Invokes the jinja2 methods to fill in the slots in the template."""
    templateObject = jinja2.Template(templateString)
    htmlContent = templateObject.render(params)
    return htmlContent