added support for slim templates