Allow to extend templates environment.