Changed some things
This commit is contained in:
parent
16f7455ce2
commit
c6c17466eb
|
@ -1 +1 @@
|
||||||
Subproject commit a7d96ea52ffa42139ac5466b5ea7d5aa3ee7900b
|
Subproject commit 83a025e6b14ab59cf8a8c54d1979f5f30297d6c9
|
2
frmWrk
2
frmWrk
|
@ -1 +1 @@
|
||||||
Subproject commit b454f70fbb366ad8b6ec84c8a6d3ca47549264f2
|
Subproject commit 0e9abf4fd60a07cb4c7ff6325a295e66164598eb
|
10
main.py
10
main.py
|
@ -1,8 +1,16 @@
|
||||||
import frmWrk.website as website
|
import frmWrk.website as website
|
||||||
import feed_generator
|
import feed_generator
|
||||||
|
import markdown
|
||||||
|
import pathlib
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
webserver = website.WebServer("", 3000, "./src")
|
def article(path):
|
||||||
|
article_name = path.split("?")[1]
|
||||||
|
article_html = feed_generator.convert_markdown_to_html(pathlib.Path("feed_articles") / article_name)
|
||||||
|
|
||||||
|
return article_html[0]
|
||||||
|
|
||||||
|
webserver = website.WebServer("", 3000, "./src", overwrites={"/articles.html": article})
|
||||||
|
|
||||||
webserver.start()
|
webserver.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue