Document Your Objects...Dynamically
ColdFusion
We have been working on some some applications using Reactor, and I thought it would be cool to create some kind of documentation tool to read through an object and basically give me the metadata in a form that I could read and print for easy access (since I am cfdump'ing Reactor stuff all the time
)
What I ended up with is pretty cool (I think):
I wrote a custom tag that you could pass two one attributes to..Object, and ObjectTitle. The tag reads through that object, writes a Flash Paper document, then embeds it into your browser.
With this tag you could easily have a site dedicated to documenting your Objects and what functions they have, and as you make changes to your object the documents stay current.
Have a look and let me know what you think...(or let me know if you have any ideas for improvements!)
UPDATE (#1) OK, now the tag only accepts the object as an attribute, the name is derived from the object's meta.
UPDATE (#2) Now the Return type is added in the doc, thanks to Mark Mandel for noticing that.
Thanks
cf_wwwObjectDoc
) What I ended up with is pretty cool (I think):
I wrote a custom tag that you could pass two one attributes to..Object, and ObjectTitle. The tag reads through that object, writes a Flash Paper document, then embeds it into your browser.
With this tag you could easily have a site dedicated to documenting your Objects and what functions they have, and as you make changes to your object the documents stay current.
Have a look and let me know what you think...(or let me know if you have any ideas for improvements!)
UPDATE (#1) OK, now the tag only accepts the object as an attribute, the name is derived from the object's meta.
UPDATE (#2) Now the Return type is added in the doc, thanks to Mark Mandel for noticing that.
Thanks
cf_wwwObjectDoc





Loading....