Skip to content

Commit

Permalink
Update examples of core blocks with static rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar committed Dec 22, 2023
1 parent b33923c commit dc8d2d8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Blocks with dynamic rendering can also define a markup representation of the blo
The markup stored for a block can be modified before it gets rendered on the front end via hooks such as <a href="https://developer.wordpress.org/reference/functions/render_block/"><code>render_block</code></a> or via <code>$render_callback</code>
</div>

Some examples of core blocks whose output for the front end is statically generated when saved to the database (as returned by their `save` functions) are[`preformatted`](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/preformatted) (see its [`save`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/preformatted/save.js) function) or [`spacer`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/spacer) (see its [`save`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/spacer/save.js) function).
Some examples of core blocks whose output for the front end is statically generated when saved to the database (as returned by their `save` functions) are:
- [`preformatted`](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/preformatted) (see its [`save`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/preformatted/save.js) function)
- [`spacer`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/spacer) (see its [`save`](https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/spacer/save.js) function).

## Blocks with Dynamic Rendering

Expand Down

0 comments on commit dc8d2d8

Please sign in to comment.