{{ group.code }}
+
+
+ {{ feature.description }} +
+ ++ + {{ headline || 'Performance' }} +
++ {{ metric.label }} +
+ ++ {{ metric.description }} +
+ +
-
+ Form submitted!
+ } else { ?> + + } ?> + +{{ JSON.stringify(data) }}
+```
+
+#### Streaming content
+
+Use the `echo()` function for streaming content. It accepts strings, functions, Promises, Response objects, or ReadableStreams:
+
+```html
+
+```
+
+#### Global variables
+
+Access request context within templates:
+
+| Variable | Description |
+| --- | --- |
+| `$REQUEST` | The incoming `Request` object |
+| `$METHOD` | HTTP method (`GET`, `POST`, etc.) |
+| `$URL` | Request `URL` object |
+| `$HEADERS` | Request headers |
+| `$RESPONSE` | Response configuration object |
+| `$COOKIES` | Read-only object containing request cookies |
+
+#### Built-in functions
+
+| Function | Description |
+| --- | --- |
+| `htmlspecialchars(str)` | Escape HTML characters (automatically applied in `{{ }}` syntax) |
+| `setCookie(name, value, options?)` | Set a cookie in the response |
+| `redirect(url)` | Redirect the user to another URL |
+| `echo(content)` | Stream content to the response |
```html [index.html]
@@ -110,6 +210,10 @@ It also exposes global variables:
Welcome, = $COOKIES["user"] || "Guest" ?>!
+