Tidied client side template importing