As far as I’m aware, there are only one or two templates that use Blockly in the first place.
Until now, I personally have approached rule templates like the Wizard of Oz: “Don’t look behind the curtain!” You shouldn’t really need to look at the code for a template, just the parameters and what they mean. For example, take Debounce [4.0.0.0;5.0.9.9]. All the end users needs to see is:
How it’s implemented doesn’t matter.
However, I’m proposing some rule templates that are instead intended that the code is looked at by the end users. So instead of focusing on error checking and robustness the focus would be on simplicity and adding comments and explanations on how it works. But because they need to be relatively simple, they can’t really do all that much, though they probably need to do more than changing a String to title case. Coming up with what that might be is my challenge right now. My rules have been honed and rewritten for years and frankly, about 80% of my rules are now implemented as rule templates (that’s where I came up with them) and the rest are not really generic. If I had ideas from my personal config I’d probably have already implemented them as templates. ![]()
