Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Started > Fundamentals of Block Development > Anatomy of a block #55437

Closed
Tracked by #56282
juanmaguitar opened this issue Oct 18, 2023 · 1 comment
Closed
Tracked by #56282
Assignees
Labels
Developer Experience Ideas about improving block and theme developer experience [Type] Developer Documentation Documentation for developers

Comments

@juanmaguitar
Copy link
Contributor

juanmaguitar commented Oct 18, 2023

This is a subtask of #56282

The goal of this page is to introduce:

  1. the purpose of each one of the types of files available for a block
  2. the relationship between them.
  3. their role in the output of the block

Among others it should explain the role of the following files for a block:

  • index.js - edit.js & save.js
  • render.php
  • view.js
  • index.php (or <plugin-name>.php)
  • editor.scss and style.scss
  • generated *.asset.php
  • build folder

The key ideas planned for this page are represented in the diagrams below

image

anatomy-of-a-block
See diagram above

@juanmaguitar
Copy link
Contributor Author

Closed as per #56551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Developer Experience Ideas about improving block and theme developer experience [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

No branches or pull requests

2 participants