Migrate to slim template engine