dist/Builder.require.jquery.keys.js
function Builder(tmpl, data) {
  // Generate a this context for data
  var that = {'tmpl': tmpl, 'data': data};

  // Run the beforeFns on tmpl
  tmpl = pre.call(that, tmpl);

  // Convert the template into content
  var content = template.call(that, tmpl, data);

  // Pass the template through the dom engine
  var $content = domify.call(that, content);

  // Run the afterFns on $content
  $content = post.call(that, $content);

  // Return the $content
  return $content;
}
function Builder(tmpl, data) {
  // Generate a this context for data
  var that = {'tmpl': tmpl, 'data': data};

  // Run the beforeFns on tmpl
  tmpl = pre.call(that, tmpl);

  // Convert the template into content
  var content = template.call(that, tmpl, data);

  // Pass the template through the dom engine
  var $content = domify.call(that, content);

  // Run the afterFns on $content
  $content = post.call(that, $content);

  // Return the $content
  return $content;
}
function Builder ( tmpl , data ) { // Generate a this context for data var that = { 'tmpl' : tmpl , 'data' : data } ; // Run the beforeFns on tmpl tmpl = pre . call ( that , tmpl ) ; // Convert the template into content var content = template . call ( that , tmpl , data ) ; // Pass the template through the dom engine var $content = domify . call ( that , content ) ; // Run the afterFns on $content $content = post . call ( that , $content ) ; // Return the $content return $content ; }
Build chain for client side views. before -> template -> domify -> after -> return
@param {String} tmpl Template to process through template engine
@param {Object} [data] Data to pass through to template engine
@returns {Mixed} Output from before -> template -> domify -> after -> return
Build chain for client side views . before - > template - > domify - > after - > return