get_lines_from_keys#

mochada_kit.tables.get_lines_from_keys(keys)#

Given a list of 5 strings representing keys in the code for the json diagram, generate and return three other groups of lines needed for the puml code file.

Parameters:
keysLIST

List of strings describing the keys in the code for the json diagram. These are typically with or without hyperlinks to the other diagrams.

Returns:
highlightsLIST

List of strings where each string is a line in the puml code file specifying a highlight to a particular row of the “contents” element of the json diagram. The colours for the highlights are given by the CHADA theme applied.

single_HLDICT

Dict where the keys are strings specifying which type of single element is highlighted and the values are strings defining lines in the puml code file which highlight the element in the key.

midLIST

List of strings where each string is a line in the puml code file specifying the structure of the “contents” element. One or more of these will be overwritten later in the process, in order to display one or all of the other elements.