• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Parse ColdFusion Source Code

Explorer ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

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?

dickbob
TOPICS
Advanced techniques

Views

788

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Feb 06, 2007 Feb 06, 2007
Yep, that's it. Another case of "wood from the trees"!

I can work with this.

Thanks Adam.

Votes

Translate

Translate
Advocate ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

Hi,

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..

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

@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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

quote:

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?
dickbob

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

Dan,

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

> 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.

http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000488.htm

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 06, 2007 Feb 06, 2007

Copy link to clipboard

Copied

LATEST
Yep, that's it. Another case of "wood from the trees"!

I can work with this.

Thanks Adam.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation