Metadata-Version: 2.1
Name: htmlwhat
Version: 1.0.1
Summary: Verify HTML code submissions and auto-generate meaningful feedback messages.
Home-page: https://github.com/arlarse/htmlwhat
Author: SHRAY SALVI
Author-email: shraysalvi@yahoo.com
License: UNKNOWN
Description: # htmlwhat
        
        `htmlwhat` is a Python module that provides feedback on incorrect HTML code submissions. It's often used in educational platforms where students submit HTML code as part of their assignments or exercises.
        
        ## Installation
        
        ```
        # latest stable version from PyPi
        pip install htmlwhat
        
        # latest development version from GitHub
        pip install git+https://github.com/arlarse/htmlwhat
        ```
        
        ## Quick Start
        ```python
        from htmlwhat.test_exercise import test_exercise
        
        userhtml = """
        <!DOCTYPE html>
        <html>
            <head>
                <title>Title</title>
            </head>
            <body class="hello">
                <h1>My First Heading</h1>
            </body>
        </html>
        """
        
        solutionhtml = """
        <!DOCTYPE html>
        <html>
            <head>
                <title>Title</title>
            </head>
            <body class="example">
                <h1>My First Heading</h1>
            </body>
        </html>
        """
        
        test = "Ex().check_body().has_equal_attr()"
        
        print(test_exercise(
            test,
            userhtml,
            solutionhtml,
        ))
        ```
        Output:
        ```json
        {'correct': False, 'message': 'Inspect the <code>&lt;body&gt;</code> tag. Expected attribute <code>class</code> to be <code>"example"</code>, but found <code>"hello"</code>.'}
        ```
        
        ## Problems after installation
        
        htmlwhat built over ``protowhat`` which uses ``jinja2==2.11.3``, and jinja uses ``MarkupSafe==2.0.1``.
        Hence you will face this error
        
        ```
        ImportError: cannot import name 'soft_unicode' from 'markupsafe'
        ```
        
        so install the latest version of jinja2 using the following command:
        
        ```
        pip install --upgrade jinja2
        ```
        
Keywords: htmlwhat,html,feedback,html validation,testing,html testing
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
