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>
<body>
<header></header>
<main></main>
<footer></footer>
<script type="text/javascript" src=""></script>
<header>
</header>
<main>
<h2 class="stream-title">{{stream-title}}</h2>
</main>
<footer>
</footer>
</body>
</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))