Variables in rendered views


Can I pass variables to views which are being rendered inside a range loop?

For example, if I have {{ range $index, $pages:= .Data.Pages }} I would want to render a summary view which has access to $index and $pages.

I think you can pass $index or $pages, only one variable to other views. If you want to use both, it is needed to pass .Data.Pages to the views and use range loop in them.

Thanks. I thought that was probably the case.