def get_rendered_content_with_filled_template(total_movies, movie_entries):
    """ Given data extracted from input file, fill in the html template

        Args:
        total_movies: total # of movies
        movie_entries: the html content representing the individual movies

        Returns:
        the final rendered html content

    """

    content = None
    with open("movie_html_template.html", "r") as template_file:
        template = template_file.read()
        content = template.format(
            _MOVIE_COUNT = total_movies,
            _MOVIE_ENTRIES = movie_entries)

    return content