Iterated templates