blob: 4dd1d76ed2331098b2e9ccff884da4b2038520bc (
plain)
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
|
\A
#set($woo = "bar")
$woo => bar
The following should print 'as is' :
$f\oo
\a
"\r"
Now, test the built in directives. Note that $foo isn't in the context :
#set($foo = $foo + 1)
#set(\$foo = $foo + 1)
#if($foo)
#if ( $foo )
#else
#end
#elseif(
Now, a reference not in the context:
\$foo -> $foo
#if($foo)
#if(\$foo)
Put it in :
$foo -> 1
#if(1)
#if($foo)
This isn't in the context, so we get the full monty :
\$woobie.blagh()
The following two are references :
$provider.Title = lunatic
$provider.getTitle() = lunatic
Now, pluggable directives:
\#notadirective
#foreach
|