make sanitization of template variables optional