Pass slug from loop to another partial

I'm trying to pass the unique slug from an index file to another partial called iframe. But its currently displaying all the entries on that partial instead of just the related entry. Anyone know if this is possible to just show the slug from only the related entry? Thanks

<!--index.antlers.html-->

{{ taxonomy:cat }}
  {{ entries }} 
    <a href="{{ /iframe }}">View iFrame</a>
  {{ /entries }}
{{ /taxonomy:cat }}
<!--iframe.antlers.html-->

{{ taxonomy:cat }}
  {{ entries }} 
    <iframe src="/{{ slug }}"></iframe>
  {{ /entries }}
{{ /taxonomy:cat }}
Answered by Fabian!
>>>>>>> Answered <<<<<<<
2 Replies
3 Followers