function jstGetTemplate(name, opt_loadHtmlFn) {
  var doc = document;
  var section;
  if (opt_loadHtmlFn) {
    section = jstLoadTemplateIfNotPresent(doc, name, opt_loadHtmlFn);
  } else {
    section = domGetElementById(doc, name);
  }
  if (section) {
    JstProcessor.prepareTemplate_(section);
    var ret = domCloneElement(section);
    domRemoveAttribute(ret, STRING_id);
    return ret;
  } else {
    return null;
  }
}
Helps to implement the transclude attribute, and is the initial
call to get hold of a template from its ID.

If the ID is not present in the DOM, and opt_loadHtmlFn is specified, this
function will call that function and add the result to the DOM, before
returning the template.

@param {string} name The ID of the HTML element used as template.
@param {Function} opt_loadHtmlFn A function which, when called, will return
  HTML that contains an element whose ID is 'name'.

@return {Element|null} The DOM node of the template. (Only element nodes
can be found by ID, hence it's a Element.)