code: function (uri, fromUri, source) {
          if (!/^\./.test(uri) || EXTNAME_RE.test(uri)) {
  
              var line;
  
              // 如果只出现一次这个字符串，很容易确认模板错误行
              if (source.split(uri).length === 2) {
                  source.split(/\n/).forEach(function (code, index) {
                      if (code.indexOf(uri) !== -1) {
                          line = index + 1;
                          source = code.trim();
                      }
                  });
              }
  
              var error = {
                  name: 'Syntax Error',
                  line: line,
                  source: source,
                  message: 'Template must be a relative path, and can not have a suffix.'
              };
  
              if (fromUri) {
                  error.filename = fromUri;
              }
  
              throw error;
          }
      }
docs: 模板 filename 规范检查 保证 include 语法引用的是相对路径