Executes CFML/Lucee code that you provide as a string.
render(CFML[, dialect ])
returns void
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
CFML | string | Yes | String to evaluate including some CFML/Lucee code | /Users/garethedwards/development/github/cfdocs/docs/functions/render.md | ||
dialect | string | No | current template’s dialect | The dialect you want details for | /Users/garethedwards/development/github/cfdocs/docs/functions/render.md | Lucee |
Description of the code example
str = 'hello world';
savecontent variable="changed"{
render("#replace(str,'world','universe')#!");
}
writeOutput(str);
writeOutput(changed);