diff options
Diffstat (limited to 'docs/index.md')
| -rw-r--r-- | docs/index.md | 19 |
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, |
