create tpl file for apps templates