Pass in the locals when instantiation a compiled template