Add ressources managing to replace templates loader