change template from juicer to xtemplate,add api