refactor(config) fillTemplate: slice -> forEach