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=string );

Returns: String

Argument Description
code
string, required

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

Alias: cfml

Examples

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

render( dynamicFunction );

See also