A WordPress custom block migration: dynamic render vs saved HTML

Building Gutenberg blocks with saved static HTML markup in post content creates a migration nightmare whenever design markup or CSS class names change across theme updates.

// block.json: Use render.php rather than saving HTML into post_content
{
  "name": "turkerdev/terminal",
  "title": "Terminal Frame",
  "category": "turkerdev",
  "render": "file:./render.php"
}

Dynamic rendering delegates markup generation to a server-side PHP template at request time. When the HTML structure evolves, every historical article updates instantly without requiring block deprecation validators or database regex search-and-replace scripts.