def render_html(self, state):
        """Render the XHTML of the current state.

        Depending on the state of a client's session,
        one of several different pages may be sent to
        his browser. The correct page is selected and
        rendered here along with XHTML code that may
        need to be dynamically generated on the fly."""
        if state.current == State.OPTIONS.GET_QUIZ:
            select = indent(self.LIBRARY.html('quiz', 'Options:'), 16)
            get_quiz = html.GET_QUIZ.format(select)
            template = html.TEMPLATE.format('', get_quiz)
        elif state.current == State.OPTIONS.GET_VERSE:
            title, menu = self.render_menu(state)
            get_verse = html.GET_VERSE.format(title, menu)
            template = html.TEMPLATE.format('', get_verse)
        elif state.current == State.OPTIONS.TEACH:
            area = self.render_area(state)
            teach = html.TEACH.format(area)
            template = html.TEMPLATE.format('', teach)
        else:
            assert state.current == State.OPTIONS.CHECK
            args = ((self.__status if self.__status else 'No'),
                    (' has' if self.__status == 1 else 's have'))
            check = html.CHECK.format(*args)
            template = html.TEMPLATE.format(html.REFRESH, check)
        return template
Render the XHTML of the current state.

        Depending on the state of a client's session,
        one of several different pages may be sent to
        his browser. The correct page is selected and
        rendered here along with XHTML code that may
        need to be dynamically generated on the fly.
recipes/Python/577043_Bible_Verse_Quiz__VerseMatchpy/recipe-577043.py