Added functionality to provide custom interpolator when generating template