Overview

Short codes are {{scope.path}} tokens you can drop directly into HTML, attribute values, JavaScript, or CSS. The server resolves them at render time, so the first painted frame already carries the real value — never the raw {{...}} placeholder. The catalog ships 224 tokens across 12 scopes.

Need the same UI inside the editor? Open the Topbar dropdown and pick Short Codes — the modal is backed by the exact same catalog you see here.

Scopes

How resolution works

  • Server-side render — every token is replaced before HTML is streamed, so the browser never sees the placeholder.
  • Page-binding aware — a token like {{pdp.title}} only resolves on a PDP route; on other pages it stays untouched (or renders blank, depending on the consumer).
  • Loop tokens — tokens that start with products[i], orders[i], etc. are evaluated inside their iterating component (e.g. <mmm-product-card> inside a loop).
  • Formatters — tokens carrying a formatter (currency, number, boolean, html, url, date) emit the value in the canonical shape; raw access uses the .raw suffix where available.
  • Composable — tokens may be combined inline (e.g. title="Buy {{pdp.title}} for {{pdp.price}}") and survive HTML attribute escaping.