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 in Lucee 5

Returns: string

Usage

render( code [, dialect ] )

Arguments

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

  • function-evaluate