// read more about Tim macros
// https://tim.openpeeps.dev/language/macros
macro container() = div.container > @statement
macro row() = div.row > @statement
@static for $x in 1..12:
macro col-lg-{$x} =
div.col-lg-{$x} > @statement
html data-bs-theme="dark"
head
meta charset="utf-8"
meta name="viewport" content="width=device-width, initial-scale=1"
title: "Tim Engine is Awesome!"
link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.9/dist/css/bootstrap.min.css"
body
@container > @row.vh-100.align-items-center > @col-lg-6.mx-auto.text-center
h1.fw-bold: "Tim Engine is Awesome!"
p: "Edit the template - output updates as you type."
ul.list-inline
for $item in ["views", "layouts", "partials"]:
li: $item
script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.9/dist/js/bootstrap.bundle.min.js"