Add support for slm templates