Example of sharing templates between client and server using Flask