summaryrefslogtreecommitdiff
path: root/docs/index.md
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.uk>2026-03-09 20:29:42 +0000
committerGitHub <noreply@github.com>2026-03-09 20:29:42 +0000
commitdd391e1e8bada3f98c685f5e43289adc28ef684f (patch)
tree2ea79ce2ad4f4dea60a7f981d8d81f34c6cbd7da /docs/index.md
parent0e46ae3add2c6213612951464b4edc44828fbc01 (diff)
parent78d259d3b971c59a0cd719c270cc5cbb740c36a7 (diff)
downloadsmarty-dd391e1e8bada3f98c685f5e43289adc28ef684f.tar.gz
smarty-dd391e1e8bada3f98c685f5e43289adc28ef684f.tar.bz2
smarty-dd391e1e8bada3f98c685f5e43289adc28ef684f.zip
Merge pull request #1 from smarty-php/master
Pull up to Smarty 8.5
Diffstat (limited to 'docs/index.md')
-rw-r--r--docs/index.md19
1 files changed, 19 insertions, 0 deletions
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
<p>
The number of pixels is: {math equation="x * y" x=$height y=$width}.
</p>
+
+<p>
+ {if $email matches "/^[^@]+@[^@]+\.[^@]+$/"}
+ Valid email address
+ {else}
+ Please enter a valid email
+ {/if}
+</p>
+```
+```html
+<h1>Hello world</h1>
+
+<p>
+ The number of pixels is: 307200.
+</p>
+
+<p>
+ Valid email address
+</p>
```
When this template is rendered, with the value "Hello world" for the variable $title, 640 for $width,