I've merged @mindoftony 's contribution for template functions into the WIP version now.
https://sourceforge.net/p/angelscript/code/2943/
For now it is just basic support, but the happy path is fully working, i.e. registering the template function/method and calling it from the script. There is still a lot that needs to be implemented and tested to make it feature complete. I'll be working on those things throughout the coming months before 2.38.0 is released.
(original thread: https://www.gamedev.net/forums/topic/717021-implementing-new-feature-template-functions/)