Revert "Revert "add temoplate""

This reverts commit 2036a1fa2709d1da0cd983b920acc42f05b5b6c5.