src/template/adaptor.js
function renderAttributeString(values, context) {
  if (typeof values === 'string' || typeof values === 'boolean') {
    return values;
  }

  var buffer = '';
  var toString = new ToString();
  for (var i = 0; i < values.length; i++) {
    toString.clear();
    render(toString, values[i], context);
    buffer += toString.getOutput();
  }

  return buffer;
}
function renderAttributeString(values, context) {
  if (typeof values === 'string' || typeof values === 'boolean') {
    return values;
  }

  var buffer = '';
  var toString = new ToString();
  for (var i = 0; i < values.length; i++) {
    toString.clear();
    render(toString, values[i], context);
    buffer += toString.getOutput();
  }

  return buffer;
}
function renderAttributeString ( values , context ) { if ( typeof values === 'string' || typeof values === 'boolean' ) { return values ; } var buffer = '' ; var toString = new ToString ( ) ; for ( var i = 0 ; i < values . length ; i ++ ) { toString . clear ( ) ; render ( toString , values [ i ] , context ) ; buffer += toString . getOutput ( ) ; } return buffer ; }
Render the value of an element's attribute
@param  {String|Object} values  VTree object for the attribute value
@param  {Context}       context current Context to evaluate in
@return {String}                String value for the attribute
Render the value of an element s attribute