diff --git a/massage_templates.py b/massage_templates.py index 304da4a..5aa2a6f 100644 --- a/massage_templates.py +++ b/massage_templates.py @@ -3,6 +3,10 @@ import glob import os import jinja2 +import numpy +import pandas + +from data_ingest import read_data def main(): @@ -11,6 +15,9 @@ def main(): ) data = { "date": datetime.datetime.utcnow(), + "pd": pandas, + "np": numpy, + "df": read_data(), } for filename in glob.glob("template/*"): out_filename = os.path.join("out", os.path.relpath(filename, "template")) diff --git a/template/index.html b/template/index.html index a3aa578..cfed1b4 100644 --- a/template/index.html +++ b/template/index.html @@ -10,6 +10,19 @@