render

Executes CFML/Lucee code that you provide as a string.

render(CFML[, dialect ]) → returns void

Member Function Syntax

This function requires Lucee. Not supported on Adobe ColdFusion.

render Argument Reference

CFML string
Required

String to evaluate including some CFML/Lucee code
Values:

dialect string
Default: current template's dialect

The dialect you want details for
Values:
  • CFML
  • Lucee

Examples sample code invoking the render function

Description of the code example

str = 'hello world';
rendVar = render("#replace(str,'world','universe')#!");
writeOutput(str);

Expected Result: hello universe!


Fork me on GitHub