From 3a67e98b71948403955d62c04a240c37263b140e Mon Sep 17 00:00:00 2001 From: arianagiroux Date: Wed, 20 Jul 2022 23:42:38 -0600 Subject: [PATCH] Initial functionality for python --- index.html | 11 +++++++---- runner.py | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 runner.py diff --git a/index.html b/index.html index f9f6b80..5f3aae0 100644 --- a/index.html +++ b/index.html @@ -12,10 +12,13 @@ -
-
- - +
+
+
+

{{stream-title}}

+
+ diff --git a/runner.py b/runner.py new file mode 100644 index 0000000..ae70d92 --- /dev/null +++ b/runner.py @@ -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))