Declarative safe cell templates
Cell templates are declared as structured element descriptors or framework components with bound values, never as strings compiled at runtime. Interpolated values are always text bindings, which removes template injection as an attack class.
Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A status column using a descriptor template of badge, icon, and label bound to the row status text.
Expected behavior
Descriptor and component templates render safely. Choosing 'string' shows a documented error explaining that string templates are unsupported. Binding a payload into an attribute is attribute-encoded, and event-handler attribute names are rejected.
Planned API surface
columns[].cellTemplatetemplateDescriptor.tagtemplateDescriptor.bindtemplateDescriptor.attrscolumns[].cellRendererAcceptance criteria
- String templates are not compiled. A configuration error is raised. (pending)
- Attribute names matching on* are rejected at configuration time. (pending)
- Bound values never alter element structure. (pending)
- The same descriptor renders identically across supported frameworks. (pending)