Add -j flag in config.py Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Tue, 26 May 2020 19:20:17 +0530
2 files changed,
7 insertions(+),
4 deletions(-)
M
bin/openring.py
→
bin/openring.py
@@ -48,6 +48,9 @@ </div>
""" ) -rendered = jinja_render(html_out, "templates/openring.html") -with open("templates/text.html", "w") as t: - t.write(rendered) +if sys.argv[1] == "-j": + rendered = jinja_render(html_out, "templates/openring.html") + with open("templates/text.html", "w") as t: + t.write(rendered) +else: + print(html_out)