add slim template support