code: function compileTokens(tokens) {
      var subRenders = {};
  
      function subRender(i, tokens, template) {
        if (!subRenders[i]) {
          var fn = compileTokens(tokens);
          subRenders[i] = function (writer, context) {
            return fn(writer, context, template);
          };
        }
  
        return subRenders[i];
      }
  
      return function (writer, context, template) {
        var buffer = "";
        var token, sectionText;
  
        for (var i = 0, len = tokens.length; i < len; ++i) {
          token = tokens[i];
  
          switch (token[0]) {
          case "#":
            sectionText = template.slice.apply(template, sectionBounds(token));
            buffer += writer._section(token[1], context, sectionText, subRender(i, token[4], template));
            break;
          case "^":
            buffer += writer._inverted(token[1], context, subRender(i, token[4], template));
            break;
          case ">":
            buffer += writer._partial(token[1], context);
            break;
          case "&":
            buffer += writer._name(token[1], context);
            break;
          case "name":
            buffer += writer._escaped(token[1], context);
            break;
          case "text":
            buffer += token[1];
            break;
          }
        }
  
        return buffer;
      };
    }
docs: Low-level function that compiles the given `tokens` into a function
  that accepts three arguments: a Writer, a Context, and the template.