templated index