WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#53148 new feature request

Editor: Consider adding `renderTemplate` property for block types

Reported by: gziolo Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

See comment from @spacedmonkey on GitHub (https://github.com/WordPress/gutenberg/pull/13693#discussion_r287337504):

Current the render callback is a function call. How would it work as a file? Why not make it renderTemplate but still allow for renderCallback. Function calls, should be a method in a class or be namespaced, which wouldn't really work in another file.

ACF blocks, has a rendercallback / render template in it's block definitions.

There is also another thread started by @spacedmonkey in https://github.com/WordPress/gutenberg/pull/13693#discussion_r288121797 which expands on this topic.

Change History (1)

#1 @gziolo
6 months ago

  • Milestone changed from Future Release to Awaiting Review
Note: See TracTickets for help on using tickets.