astFromPath

Parses a CFML file and returns its abstract syntax tree (AST) as a struct.

astFromPath(path) → returns struct

This function requires Lucee 7.0.0.296 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

path any
Required

The path to the CFML file.

Examples
Sample code invoking the astFromPath function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub