ADds compilation of templates