corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 /**
2 * Greets a person using "Hello" by default.
3 * @param name The name of the person.
4 * @param? greetingWord Optional greeting word to use instead of "Hello".
5 */
6 {template .helloName #eee}
7 {if not $greetingWord}
8 Hello {$name}!
9 {else}
10 {$greetingWord} {$name}!
11 {/if}
12 {/template}
13  
14 /**
15 * Greets a person and optionally a list of other people.
16 * @param name The name of the person.
17 * @param additionalNames The additional names to greet. May be an empty list.
18 */
19 {template .helloNames}
20 // Greet the person.
21 {call .helloName data="all" /}<br>
22 // Greet the additional people.
23 {foreach $additionalName in $additionalNames}
24 {call .helloName}
25 {param name: $additionalName /}
26 {/call}
27 {if not isLast($additionalName)}
28 <br> // break after every line except the last
29 {/if}
30 {ifempty}
31 No additional people to greet.
32 {/foreach}
33 {/template}
34  
35  
36 {/foreach}
37 {if length($items) > 5}
38 {msg desc="Says hello to the user."}
39  
40  
41 {namespace ns autoescape="contextual"}
42  
43 /** Example. */
44 {template .example}
45 foo is {$ij.foo}
46 {/template}