API: moved getTemplatesWithSuffix functionality out into a SSViewer

See #2658 for background.