Share templates between front and back end