dotapatch.model
¶
Module for the HTML structure.
-
class
dotapatch.model.
Html
(title, template='default')[source]¶ Manages HTML output.
-
add_general
(lines)[source]¶ Add lines to general section.
Parameters: lines (list[str]) – List of general changelog lines to be added into the general section
-
add_heroes
(hero_dictionary)[source]¶ Add hero_dictionary to heroes section.
Note
{'dname': ['Change one.', 'Change two.']}
Parameters: hero_dictionary (dict) – Dictionary of heroes to be added into the heroes section
-
add_items
(item_dictionary)[source]¶ Add item_dictionary to items section.
Note
{'dname': ['Change one.', 'Change two.']}
Parameters: item_dictionary (dict) – Dictionary of items to be added into the items section
-