CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

adobe/aem-edge-delivery-services

Skills for building AEM Edge Delivery Services sites — site creation, block development, content modeling, code review, testing, and page import.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files

footer.jsskills/snowflake/assets/substrate/blocks/footer/

/**
 * Loads the template-specific footer fragment from the code bus.
 * Each overlay-controlled page sets main.dataset.overlay = <template>
 * during loadEager; we read it here to pick the right fragment.
 * Fragments live at /fragments/<template>/footer.html.
 */
export default async function decorate(block) {
  const template = document.querySelector('main')?.dataset?.overlay;
  if (!template) return;
  const path = `/fragments/${template}/footer.html`;
  const resp = await fetch(`${window.hlx.codeBasePath}${path}`);
  if (!resp.ok) {
    // eslint-disable-next-line no-console
    console.warn(`[footer] fragment not found at ${path}`);
    return;
  }
  block.innerHTML = await resp.text();
}

skills

README.md

tile.json