You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom rendered elements are bad, since the designer would never see them before the developer did his part. Not sure how we solve this problem, but the designer should never rely on PHP to see how the template really are, this is the most critical flaw of every template engine out there.
Escaping and filtering seems good, we need to come up with real use cases.
EmptyDecorator - Used when no data is passed by the backend (There is no data to show in this table) or when the designer does not want the element to show when there is no data passed by the backend
TemplateDecorator - Used when some pre-defined element(s) by the designer are used by the Template (Ex: Zebra rows)
Plugins are a way of adding a different behavior when decoration elements, examples of plugins are:
How designer could use them:
Or we could use data attribute, but classes just seem a little bit better and we can use them as selectors also.
Waiting your considerations ...
The text was updated successfully, but these errors were encountered: