parseCFDocumentFile

fnCfDocument parseCFDocumentFile(string path, CfParserConfig config = CfParserConfig.init)

Parses a CF file into a CfDocument.

This is a convenience function that reads the file and parses it using the document model API.

Parameters

pathThe path to the CF file to parse
configOptional parser configuration

Returns

A CfDocument representing the parsed CF file.

Throws

CfParseException if the file contains syntax errors.

FileException if the file cannot be read.