lucee.Componentcommandbox.system.modules_app.system-commands.commands.execute
Executes a CFML file and outputs whatever the template outputs using cfoutput or the buffer. . {code:bash} execute myFile.cfm {code} . You can also pass variables to the template by passing any number of additional parameters to this command. . If you're using named parameters, they will be available by ${name} in the variables scope. variables.$foo, variables.$bum . {code:bash} execute file=myFile.cfm foo=bar bum=baz {code} . If you're using positional parameters, they will be available as ${position} in the variables scope. variables.$1, variables.$2 . {code:bash} execute myFile.cfm bar baz {code}
Method Summary | |
---|---|
private void
|
clearTemplateCache()
|
private struct
|
parseArguments(any args)
Parse arguments and return a collection. |
any
|
run(any file)
|
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
Parse arguments and return a collection
args
file
- The file to execute