how to make leaf templates