crunk-columns is a PESOS style website maker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
881 B

12 months ago
from flask import (
import tomli
from app import create_app
from column import Column
APP = create_app()
def index():
with open("columns.toml", "rb") as f:
column_dict = tomli.load(f)
columns_file = column_dict["column"]
columns = []
for column_from_file in columns_file:
urls = column_from_file["urls"]
12 months ago
title = column_from_file["title"]
column = Column(title=title, urls=urls)
12 months ago
if "limit" in column_from_file:
if "sort_order" in column_from_file:
12 months ago
return render_template("index.html", columns=columns)
if __name__ == "__main__":
APP.debug = True