Reformat code to allow for longer template URLs