{% extends "_base.jinja2" %} {% block title %}Template Render Demo{% endblock %} {% block content %}

Lua Template Rendering Demo

This example shows Lua scripts rendering Jinja2 templates with custom variables.

1. Greeting with Query Params

Visit /api/greet?name=Alice — a Lua script renders the greeting template.

Or try /api/greet?name=Bob&role=Admin with a role.

2. Form Submission with Template Render




{% endblock %}