You can make all three work, but you will need to use Dust helpers.
1: You need the @eq
helper (I'm also changing the key from eye-color
to eyeColor
because dashes can confuse Dust.
<ul>
{#people}
{@eq key=eyeColor value="Green"}
<li>{name}</li>{~n}
{/eq}
{/people}
</ul>
2: You need the @lt
helper, along with $idx
($idx
is the index of the current item in the array, where the first item is 0).
<ul>
{#people}
{@lt key=$idx value=2}
<li>{name}</li>{~n}
{/lt}
{/people}
</ul>
3: You need the @eq
helper, along with $idx
<ul>
{#people}
{@eq key=$idx value=1}
<li>{name}</li>{~n}
{/eq}
{/people}
</ul>