public CFStatementResult Exec(CFContext context) throws cfmRunTimeException {
    setLineCol(context);

    String templatePath = template.EvalFully(context).getString();

    cfSession session = context.getSession();
    cfFile templateFile = cfINCLUDE.loadTemplate(session, templatePath);
    session.write(templateFile.renderToString(session).getOutput());

    return null;
  }
Пример #2
0
  @Override
  public CFStatementResult Exec(CFContext context) throws cfmRunTimeException {
    setLineCol(context);

    if (message != null) {
      String messageStr = message.EvalFully(context).getString();
      throw new cfmRunTimeException(
          catchDataFactory.runtimeException(this.getHostTag(), messageStr));
    } else {
      context
          .getSession()
          .abortPageProcessing(true); // throws cfmAbortException, but flushing the output
    }

    return null;
  }
 public String Decompile(int indent) {
   return "include " + template.Decompile(0);
 }