Initial functionality for python

This commit is contained in:
Ariana Giroux 2022-07-20 23:42:38 -06:00
parent 1c4ff4eafb
commit 3a67e98b71
2 changed files with 21 additions and 4 deletions

View File

@ -12,10 +12,13 @@
</head> </head>
<body> <body>
<header></header> <header>
<main></main> </header>
<footer></footer> <main>
<script type="text/javascript" src=""></script> <h2 class="stream-title">{{stream-title}}</h2>
</main>
<footer>
</footer>
</body> </body>
</html> </html>

14
runner.py Normal file
View File

@ -0,0 +1,14 @@
#! /Users/arianagiroux/Documents/Coding/owncast-obs-streamer/venv/bin/python3
import chevron
def render(data={}):
return chevron.render(template=open('index.html', 'r'), data=data)
data_constructor = {
'stream-title': 'a big test'
}
print(render(data_constructor))