caching HTML templates - problem with loading modules fixed