File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ def read_text(path):
77
88def inline_assets (html , css , js ):
99 compilation_time = datetime .datetime .now ().strftime ("%Y-%m-%d %H:%M" )
10- html = html .replace (f'<span id="tool-version"></span>' , '<span id="tool-version">compiled on {compilation_time}<strong></strong></span>' )
11- html = html .replace ('<link rel="stylesheet" href="style.css">' , '' )
12- html = html .replace ('</head>' , f'<style>\n { css } \n </style>\n </head>' )
13- html = html .replace ('<script src="app.js"></script>' , '' )
14- html = html .replace ('</body>' , f'<script>\n { js } \n </script>\n </body>' )
10+ html = html .replace (f'<span id="tool-version"></span>' , f '<span id="tool-version">compiled on { compilation_time } <strong></strong></span>' )
11+ html = html .replace (f '<link rel="stylesheet" href="style.css">' , f '' )
12+ html = html .replace (f '</head>' , f'<style>\n { css } \n </style>\n </head>' )
13+ html = html .replace (f '<script src="app.js"></script>' , f '' )
14+ html = html .replace (f '</body>' , f'<script>\n { js } \n </script>\n </body>' )
1515 return html
1616
1717
You can’t perform that action at this time.
0 commit comments