Skip to content

Instantly share code, notes, and snippets.

@rofe
Last active February 21, 2024 14:35
Show Gist options
  • Save rofe/b4cfd6269f02742ce6acf4a8822fa2b3 to your computer and use it in GitHub Desktop.
Save rofe/b4cfd6269f02742ce6acf4a8822fa2b3 to your computer and use it in GitHub Desktop.
placeholders
import { fetchPlaceholders } from '/scripts/aem.js';
// fetch placeholders from the 'en' folder
const placeholders = await fetchPlaceholders('en');
// retrieve the value for key 'foo'
const { foo } = placeholders;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment