a template editor based on razor engine and avalon editor