Skip to content

mod_template

Germán Luis Aracil Boned edited this page Apr 6, 2026 · 1 revision

mod_template

Category: Rendering | Version: v1.0.0 | Source: modules/mod_template/mod_template.c

Description

Template rendering with {{variable}} syntax. Load templates from files, cache in memory, render with variable substitution.

Paths

Path Method Description
/template/render ACTION Render template with variables
/template/list GET List cached templates
/template/reload ACTION Reload templates from disk

Example

<!-- /var/lib/portal/templates/page.html -->
<html>
<body>
    <h1>Hello, {{username}}!</h1>
    <p>You have {{count}} messages.</p>
</body>
</html>

Clone this wiki locally