From 5487e31c4b3fcf7edc4e0da716ac24c9333ae3ba Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Sun, 15 Feb 2026 15:23:55 +0100 Subject: Add support for Backed Enums (#1171) * Add support for Backed Enums Fixes #1012 Also added docs (and docs for matches operator) --- docs/index.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'docs/index.md') diff --git a/docs/index.md b/docs/index.md index e187ffbe..63cf15e0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,6 +8,25 @@ It allows you to write **templates**, using **variables**, **modifiers**, **func

The number of pixels is: {math equation="x * y" x=$height y=$width}.

+ +

+ {if $email matches "/^[^@]+@[^@]+\.[^@]+$/"} + Valid email address + {else} + Please enter a valid email + {/if} +

+``` +```html +

Hello world

+ +

+ The number of pixels is: 307200. +

+ +

+ Valid email address +

``` When this template is rendered, with the value "Hello world" for the variable $title, 640 for $width, -- cgit v1.3