add xptemplate_cwd_snippet support