Put template settings above everything else so they are processed first.