Skip to content

Commit 5d129db

Browse files
committed
docs(service-messaging): the template object's docblock names the placement save hooks
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ApJv4hDHQ6M1JprNZFKzAW
1 parent 8485bb1 commit 5d129db

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/services/service-messaging/src/objects/notification-template.object.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ export const TEMPLATE_CHANNELS = ['email', 'sms'] as const;
4343
* additive. `channel` is one of {@link TEMPLATE_CHANNELS}; see there for who
4444
* reads a row and why no other value is accepted.
4545
*
46+
* An `html` / `mjml` body may place a hole only in element text or a quoted
47+
* plain-text attribute value, the two placements the renderer's encoding is
48+
* right for. A save placing one anywhere else is refused by the save hooks in
49+
* `notification-template-placement.ts` (#25082), which `MessagingServicePlugin`
50+
* binds on the engine. They are hooks rather than a rule here because a rule's
51+
* CEL condition has no reading of HTML placement.
52+
*
4653
* Studio-configurable (contributed to the Setup → Configuration nav). Belongs to
4754
* `service-messaging`.
4855
*/

0 commit comments

Comments
 (0)