Added method to register tpl funcs with the message renderer.