diff options
| author | Marin Ivanov <[email protected]> | 2024-08-21 10:20:12 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2024-08-21 10:20:12 +0300 |
| commit | a693f2cc0f734f5c084687a3fd6eab0daef17825 (patch) | |
| tree | 9d9cc0e156eba0316f0eabba06aa27a8c4f9d1ec /build.py | |
| parent | e259a1465e5417220e85dd7b6136d15135f4d95a (diff) | |
improvements
Diffstat (limited to 'build.py')
| -rw-r--r-- | build.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,9 @@ for name in inputs: config = tomllib.loads(files["config.toml"]) configjson = json.dumps(config, separators=(',',':')) +with open("config.js","w") as f: + f.write("config="+configjson+";") + index = files["index.html"] index = index.replace('<link rel="stylesheet" href="style.css">', f'<style>{files["main.css"]}</style>') |
