Automatically apply a template when registering an IXrouter