My apologies if this has been asked before or documented elsewhere. I’ve been looking “everywhere” and haven’t found anything.
I love ColdFusion’s component explorer (you know, the one you get when you go to cf_root/wwwroot/CFIDE/componentutils/componentdoc.cfm ?). I’m trying to get our team to make better use of it so they can reuse code more. Model objects are wonderful for this as the component explorer writes out all the arguments needed for each method, etc. However, with handlers, values aren’t passed as arguments, per say; they are all bundled together inside the event argument. This doesn’t help to document which keys in the request collection a handler is expecting to see. I’ve thought about adding extra argument tags inside each handler action, but then you wouldn’t be able to specify required attributes, and this isn’t the way coldbox works anyway, so you would probably end up confusing other developers. I’ve also thought about adding metadata attributes to the functions such as ‘rcParams’ or somthing and then modifying the component explorer to look for and write out that content. But that’s no better than just using the ‘hint’ attribute. Has anyone else wanted to see better documentation of handlers? I’m curious to know what others have done about this.
Thanks in advance,
Tim.