add doc about xptemplate_cwd_snippet