Render

Similar to the Evaluate function, this function executes Lucee tag code that you provide as a string and returns any output as a string.

Introduced: 5.0.0.0

Render( code [, dialect ] )

Returns: String

Argument Description
code
string, required

The code to evaluate, e.g. "#methodName#( argumentCollection=argsCollection )"

dialect
string, optional

Either cfml (default) or Lucee.

Examples

dynamicFunction = "<cfscript>echo( 'Guten tag!' )</cfscript>";
render( dynamicFunction );

See also