Hacking on a Nvelocity C#/.NET view template (.cs file), I'm really missing the Python keyword "in" (as in, "foo in list"). What is the built-in for checking list/array membership?
This is what my Python brain wants to do:
#set ( $ignore = ['a','b','c'] )
<ul>
#foreach ( $f in $blah )
#if ( $f not in $ignore )
<li> $f </li>
#end
#end
</ul>
But I am not sure what the right syntax is, if there is indeed any. I had a quick look at the Velocity Template Guide but didn't spot anything useful.