Get template by index.