cfcontent script support

Description

Cfcontent does not seem to have script support.

This does not work
```
function index( event, rc, prc ){
cfcontent(type="text", file=expandpath('../resources/imports/morningstar/20201019_MSENAUSP.SDE'))
}
```
This does
```
function index( event, rc, prc ){
```
<cfcontent type="text/plain" file="#expandpath('../resources/imports/morningstar/20201019_MSENAUSP.SDE')#">
```
}
```

Activity

Show:
Julian Halliwell
October 23, 2020, 4:01 PM

Lucee does support cfcontent(), been using it for years like so:

When you say "it doesn't work", what happens exactly?

You can also do:

Pothys - MitrahSoft
October 29, 2020, 3:14 PM

, I've checked this issue with your example. Yes, it throws an error like Syntax Error, Invalid Construct. But, if we add a semicolon ( ; ) at end of the function means it works fine. And you can use example too.Please check it and report it here back.

John Wilson
October 29, 2020, 3:25 PM

You’re right. It does work. It would be wonderful if there was more info on what the problem was, but I realize that’s hard to address in parsing. This issue can be closed. Thank you for checking on it.

Pothys - MitrahSoft
November 2, 2020, 1:59 PM

As per the reporter said I close this ticket.

Closed

Assignee

Unassigned

Reporter

John Wilson

Labels

None

Affects versions

Priority

Major
Configure