From 4af132cf6adeeeeb5d6764c378bec2d05cad042f Mon Sep 17 00:00:00 2001 From: frosty Date: Sun, 28 Dec 2025 03:26:05 -0500 Subject: Migrated from GitHub --- examples/template-demo/templates/index.html | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 examples/template-demo/templates/index.html (limited to 'examples/template-demo/templates/index.html') diff --git a/examples/template-demo/templates/index.html b/examples/template-demo/templates/index.html new file mode 100644 index 0000000..837688f --- /dev/null +++ b/examples/template-demo/templates/index.html @@ -0,0 +1,48 @@ + + + + + + {{title}} + + + +
+ {{include "header.html"}} + +

{{page_heading}}

+ +

Welcome, {{username}}! This page demonstrates the templating capabilities of the Beaker web framework.

+ +

Simple Variable Substitution

+

Your favourite colour is: {{favourite_colour}}

+

The current year is: {{current_year}}

+

This is a safe string: {{safe_html|safe}}

+

This is an unsafe string (will be escaped): {{unsafe_html}}

+ +

List of Features (String Array)

+

Here are some features:

+ + +

User Data (Array of Arrays)

+

Here's some user information:

+ + + +
+ + -- cgit v1.2.3