View of the Model View Controller
Contains the class for the
SchemaView class handles all output creating valid HTML
Class method: creates a section of HTML with the properties of the schema
Parameters: |
|
---|---|
Returns: | html <li></li> |
Generate the valid Schema. This can be validated on Google Developers Structured Data Testing Tool
The properties with data get placed in their respective divs
Parameters: | ctx – Context with the Query_string arguments |
---|
Parameters: | hierarchy – The list of lists that’s the full hierarchy |
---|---|
Returns: | index.html |
Class method for UX experience. Shows the schema has effectively been stored in LocalStorage
Returns: | str |
---|
Class method: Creates top level output for a schema
Parameters: | schema – SchemaClass |
---|---|
Return type: | str - html |