[alerts] investigate usage of handlebars instead of mustache #84218
Labels
discuss
estimate:needs-research
Estimated as too large and requires research to break down into workable issues
Feature:Alerting/RuleActions
Issues related to the Actions attached to Rules on the Alerting Framework
Feature:Alerting
R&D
Research and development ticket (not meant to produce code, but to make a decision)
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
For alerting, we currently use mustache as our templating library to render strings with variables from the alert execution. We've wondered about switching to handlebars instead, and this issue is to discuss/research that.
Handlebars is basically mustache++. One significant issue we'd have to deal with is whether all our existing customer's templates would still work.
Beyond that, I did just a bit of peeking at handlebars for issue #79371 (comment) , and noted both the complexity issues (on the customer's end) and security concerns. I remember coming away from the investigation feeling that handlebars is very much aimed at providing developers a richer experience than mustache, which it certainly does. But we're not targetting developers - ideally it would be nice to have something in-between mustache and handlebars - a little more function, but not so much that the result is a new programming language.
What led us looking at handlebars again is being able to provide ease-of-use functions for use in a template. And the fact that Dashboard URL templating uses handlebars.
The text was updated successfully, but these errors were encountered: