Skills for building AEM Edge Delivery Services sites — site creation, block development, content modeling, code review, testing, and page import.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
/**
* Loads the template-specific header 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>/header.html.
*/
export default async function decorate(block) {
const template = document.querySelector('main')?.dataset?.overlay;
if (!template) return;
const path = `/fragments/${template}/header.html`;
const resp = await fetch(`${window.hlx.codeBasePath}${path}`);
if (!resp.ok) {
// eslint-disable-next-line no-console
console.warn(`[header] fragment not found at ${path}`);
return;
}
block.innerHTML = await resp.text();
}.tessl-plugin
skills
aem-block-library
aem-cli
aem-layout-view
block-collection-and-party
brand-setup
references
building-blocks
code-review
content-driven-development
references
content-modeling
create-site
da-auth
figma-to-content
find-test-content
generate-import-html
identify-page-structure
migrate-header
page-decomposition
page-import
preview-import
scrape-webpage
slicc-handoff
snowflake
assets
substrate
substrate-milo
examples
knowledge
scripts
testing-blocks
ue-component-model