wptrainingteam / developer-hours-create-block-templates

A collection of templates for creating WordPress blocks and Editor extensions that was showcased on Developer Hours (12/3/2024)

Repository from Github https://github.comwptrainingteam/developer-hours-create-block-templatesRepository from Github https://github.comwptrainingteam/developer-hours-create-block-templates

Create Block Templates

A collection of templates for creating WordPress blocks and Editor extensions. These templates are designed to work with the create-block tool and were built to simulate templates you might create for your own projects (in this case Nick Diego). However, feel free to use them or modify the templates as you see fit.

Usage

To use the templates, use the traditional create-block command and specify the template you want to use. The following command will create a new block in the current directory called my-dynamic-block using the dynamic-block template.

npx @wordpress/create-block my-dynamic-block --template ../create-block-templates/templates/dynamic-block

About

A collection of templates for creating WordPress blocks and Editor extensions that was showcased on Developer Hours (12/3/2024)


Languages

Language:Mustache 79.5%Language:JavaScript 20.5%