This content has been marked as final. Show 6 replies
In case if you are trying to do documentation for CFC's then all you have to do is merely type the location of your CFC in your browser (ie., http://localhost/product.cfc) and the CF Engine will do the parsing and will give you the documented page..
@Daverms, yes you're right but I should have said I know about this function and that it doesn't suit my requirements plus I don't think it works in most shared hosting environments.
Originally posted by: DickBobUK
I'm looking for some help in parsing ColdFusion source code, say a cfc, to provide some documentation.
Does anyone have some pointers for me to research?
You can always start with cffile. What sort of parsing did you have in mind and what did you want your resulting documentation to resemble?
One aspect will involve parsing CFC's but like I said to Daverms, the standard CFC administrator tool is not available on shared hosting.
I'm happy with using CFFILE my question is really about how to traverse the resulting file extracting tags and their attributes. I've been scanning around for a UDF to help me but to no avail.
> the standard
> CFC administrator tool is not available on shared hosting.
All the tool does is to instantiate the component and output it's metadata
on a template. There's no special trick to it.
Yep, that's it. Another case of "wood from the trees"!
I can work with this.