lib/schema/field.js
function Field (field, name, parent) {
  if (!(this instanceof Field)) return new Field(field, name, parent);

  debug('field <%s> being built from <%s>', name, field);
  Entry.call(this, field, name, parent);
  this._context = parent._context;
  this._this = parent._this;

  if (typeof this._content !== 'string') {
    this._compiled = function () {
      return this._content;
    }.bind(this);
  } else {
    this._compiled = _.template(this._content);
  }
}
function Field (field, name, parent) {
  if (!(this instanceof Field)) return new Field(field, name, parent);

  debug('field <%s> being built from <%s>', name, field);
  Entry.call(this, field, name, parent);
  this._context = parent._context;
  this._this = parent._this;

  if (typeof this._content !== 'string') {
    this._compiled = function () {
      return this._content;
    }.bind(this);
  } else {
    this._compiled = _.template(this._content);
  }
}
function Field ( field , name , parent ) { if ( ! ( this instanceof Field ) ) return new Field ( field , name , parent ) ; debug ( 'field <%s> being built from <%s>' , name , field ) ; Entry . call ( this , field , name , parent ) ; this . _context = parent . _context ; this . _this = parent . _this ; if ( typeof this . _content !== 'string' ) { this . _compiled = function ( ) { return this . _content ; } . bind ( this ) ; } else { this . _compiled = _ . template ( this . _content ) ; } }
Internal representation of non-object non-array fields in template schema
@class
@augments {Entry}
@memberOf module:schema
@param {(string|number|boolean)} field
@param {string} name
@param {Entry} parent
Internal representation of non - object non - array fields in template schema