Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

What to do about rendering? #13

Open
westonruter opened this issue Jun 25, 2017 · 0 comments
Open

What to do about rendering? #13

westonruter opened this issue Jun 25, 2017 · 0 comments
Labels

Comments

@westonruter
Copy link
Member

Panels, sections, and controls have methods for rendering the control's markup or a template for client-side rendering. How should these get expressed in the REST API endpoints? Should they be excluded? Should we essentially deprecate rendered objects and only support templates via the REST API? If so, how then should clients access the templates that are defined in the render_template methods? We should be forward-thinking here as well. What would the ideal look like here for Customizer that is rendered via the REST API? Instead of an Underscore template string, should this instead return the (for example) React component name?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant