-
Notifications
You must be signed in to change notification settings - Fork 614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow some form of robust templating #614
Comments
We could perhaps also use custom helpers to do away with config like "StripNick", as people could do that via templates: https://github.com/aymerick/raymond#helpers |
Potential use-cases:
|
Defaults here would be helpful, so might be nice to have a more robust default process, rather than simply empty strings or falsey values |
Not sure whether mustache is the most appropriate engine, so generalizing this issue |
Go has a text templating system in its standard library: text/template. |
Thanks @qaisjp! |
I think using tengo is the solution for this instead of templating, much more powerful |
Good call. Closing out :) Thanks! |
Handlebar is a templating library that allows simple logic. It might be nice to use it to allow for more robust templating for certain types of messages/strings.
One benefit of this is that comprehensive format rules could be set at
General
level, rather than setting them at each gateway.Places to implement:
RemoteNickFormat
. Could allow for setting certain format based on protocol or.InitialComment
template, re: Make sure threaded files stay in thread (slack). Fixes #590 #606 (comment)Seems the best library in go: https://github.com/aymerick/raymond
The text was updated successfully, but these errors were encountered: