Template normalisation (+ adding RainTPL support)