Add slim template support