模板系统升级

Signed-off-by: XuTongle <xutongle@gmail.com>