commandbox.system.modules_app.system-commands.commands

Class execute

lucee.Component
    extended by commandbox.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}

Class Attributes:
  • aliases : exec
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    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

    clearTemplateCache

    private void clearTemplateCache()


    parseArguments

    private struct parseArguments(any args)

    Parse arguments and return a collection

    Parameters:
    args

    run

    public any run(any file)

    Parameters:
    file - The file to execute