mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 15:45:49 -06:00
[GH-ISSUE #1121] Add utility functions to Message Templates #791
Labels
No labels
ai-generated
android-app
android-app
android-app
build
build
dependencies
docs
enhancement
enhancement
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
server
server
unified-push
web-app
website
🔒 security
🔥 HOT
🪲 bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ntfy#791
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davidatkinsondoyle on GitHub (May 29, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1121
💡 Idea
As a Notification Publisher
I would like like utility template functions to be available in message template
So that I can perform more advanced string manipulation in templates
Issues raised as outcome of thread on Discord.
Example Solution, using splitList and trim functions form sprig
Using the Slack Webhook format Alert Service in TrueNas emits a payload as below;
To turn this payload into a more usable nfty notification, with a title and message;
Title Template
Renders;
Message Template
Renders;
Possible implementations / Inspiration
💻 Target components
ntfy server