src/compiler/builders.js
/**
 * Wraps a buildDom function with functionality that every component needs.
 *
 * @param {import('./types').BuildDom} buildDom
 * @return {import('./types').BuildDom}
 */
Wraps a buildDom function with functionality that every component needs.
Wraps a buildDom function with functionality that every component needs .
function wrap(buildDom) {
  return function wrapper(element) {
    applyStaticLayout( (element));
    buildDom(element);
    element.setAttribute('i-amphtml-ssr', '');
  };
}
function wrap ( buildDom ) { return function wrapper ( element ) { applyStaticLayout ( ( element ) ) ; buildDom ( element ) ; element . setAttribute ( 'i-amphtml-ssr' , '' ) ; } ; }
Wraps a buildDom function with functionality that every component needs.
Wraps a buildDom function with functionality that every component needs .
/** @type {AmpElement} */