Initial functionality for python
This commit is contained in:
parent
1c4ff4eafb
commit
3a67e98b71
2 changed files with 21 additions and 4 deletions
11
index.html
11
index.html
|
@ -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
14
runner.py
Normal 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))
|
Loading…
Reference in a new issue