update xtemplate demo