Hacking on the Nvelocity C # /. NET presentation template (.cs file), I really miss the Python keyword "in" (like in "foo in list"). What is the inline element for checking list / array?
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'm not sure what the correct syntax is, if it really is. I quickly looked through the Speed Template Guide , but found nothing useful.
source
share