Blocs Gutenberg
Elementum fournit une CLI et des outils pour créer des blocs Gutenberg personnalisés facilement.
📚 Sections
- Créer un bloc — Générer un bloc avec la CLI
💡 Exemple
# Créer un bloc avec la CLI php dobby make:block hero
// app/Blocks/HeroBlock.php #[Block('hero')] class HeroBlock { public function render(array $attributes): string { return $this->render('blocks/hero.html.twig', $attributes); } }