Initial functionality for python
This commit is contained in:
parent
1c4ff4eafb
commit
3a67e98b71
11
index.html
11
index.html
|
@ -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>
|
||||||
|
|
|
@ -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 New Issue