[wp-trac] [WordPress Trac] #53148: Editor: Consider adding `renderTemplate` property for block types

WordPress Trac noreply at wordpress.org
Tue May 4 07:35:42 UTC 2021


#53148: Editor: Consider adding `renderTemplate` property for block types
-----------------------------+----------------------------
 Reporter:  gziolo           |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Editor           |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53148>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list