MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / file2html

Function file2html

SLiCAP/SLiCAPhtml.py:989–1004  ·  view source on GitHub ↗

Writes the contents of a file to the active html page. The file must be located in the ini.txt_path. :param fileName: Name of the file :type fileName: str :return: html code that will be inserted in the HTML file :rtype: str

(fileName)

Source from the content-addressed store, hash-verified

987 return html
988
989def file2html(fileName):
990 """
991 Writes the contents of a file to the active html page. The file must be
992 located in the ini.txt_path.
993
994 :param fileName: Name of the file
995 :type fileName: str
996
997 :return: html code that will be inserted in the HTML file
998 :rtype: str
999 """
1000 f = open(ini.txt_path + fileName)
1001 html = f.read()
1002 f.close()
1003 html = _insertHTML(ini.html_path + ini.html_page, html)
1004 return html
1005
1006### HTML links and labels
1007

Callers 1

makeCircuitFunction · 0.90

Calls 1

_insertHTMLFunction · 0.85

Tested by

no test coverage detected