1## Testing the evaluate directive 2 3#evaluate("basic string") 4 5#set($test1 = "zz") 6#set($test2 = '$test1') 7 8#evaluate("embedded reference $test2") 9 10#evaluate($test2) 11 12## Now check that #evaluate does change context 13## Need to use single quote to surround #set to prevent premature evaluation 14 15#set($teststring = "reference $test2 changes to" + 16 '#set($test1 = "xx") $test1') 17#evaluate($teststring) 18 19## Check that test1 has changed 20test1: $test1 21