lib/markers.js
function Markers (engine, prefix) {
    /**
     * This array stores the promises created in the current event-loop cycle
     * @type {Promise[]}
     */
    this.promiseStore = []
    this.engine = engine
    this.prefix = prefix
    // one line from substack's quotemeta-package
    var placeHolderRegexEscaped = String(this.prefix).replace(/(\W)/g, '\\$1')
    this.regex = new RegExp(placeHolderRegexEscaped + '(\\d+)(>|&gt;)', 'g')
  }
function Markers (engine, prefix) {
    /**
     * This array stores the promises created in the current event-loop cycle
     * @type {Promise[]}
     */
    this.promiseStore = []
    this.engine = engine
    this.prefix = prefix
    // one line from substack's quotemeta-package
    var placeHolderRegexEscaped = String(this.prefix).replace(/(\W)/g, '\\$1')
    this.regex = new RegExp(placeHolderRegexEscaped + '(\\d+)(>|&gt;)', 'g')
  }
function Markers ( engine , prefix ) { /**
     * This array stores the promises created in the current event-loop cycle
     * @type {Promise[]}
     */ this . promiseStore = [ ] this . engine = engine this . prefix = prefix // one line from substack's quotemeta-package var placeHolderRegexEscaped = String ( this . prefix ) . replace ( / (\W) / g , '\\$1' ) this . regex = new RegExp ( placeHolderRegexEscaped + '(\\d+)(>|&gt;)' , 'g' ) }
A class the handles the creation and resolution of markers in the Handlebars output.
Markes are used as placeholders in the output string for promises returned by helpers.
They are replaced as soon as the promises are resolved.
@param {Handlebars} engine a Handlebars instance (needed for the `escapeExpression` function)
@param {string} prefix the prefix to identify placeholders (this prefix should never occur in the template).
@constructor
A class the handles the creation and resolution of markers in the Handlebars output . Markes are used as placeholders in the output string for promises returned by helpers . They are replaced as soon as the promises are resolved .