Added slim templates support