-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.php
52 lines (38 loc) · 854 Bytes
/
example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@{ name }
<#
Some Comment
#>
@{ :name }
<@ ../relative-include.php @>
<@ Vendor/Package { key: "value" } @>
<# Some Comment #>
<span title="@{ title }">@{ :runtime }</span>
@{ name | /2 | -3.1 | +1 }
@{ name | def('test') | filter | filter (false, 10, 'string') | filter (@{ var | filter(true) } ) }
@{ name |
def('test') |
filter |
filter (false, 10, 'string') |
filter (@{ var | filter(true) } )
}
<@ for @{ start } to 10 @>
<span>@{ :i }</span>
<@ end @>
<@ foreach in "*.jpg, *.png" { width: 400, height: 300, crop: true } @>
<p>@{ :caption }</p>
<@ else @>
<p>No images found!</p>
<@ end @>
<@ foreach in pagelist @>
<li>@{ title }</li>
<@ else @>
<li>No pages here!</li>
<@ end @>
<@ if @{ variable | filter } != 'Hello' @>
True
<@ else @>
False
<@ end @>
<@ if not @{ variable | filter } @>
True
<@ end @>