FileIterator for templates