implements erb with index and enough templates