Adam Cameron
Scott Steinbeck
05/10/2022, 5:00 AM```lucee+trycf
<cfoutput>
<cffunction access="private" name="add">
<cfargument name="arg1" type="Numeric" required />
<cfargument name="arg2" type="Numeric" required />
<cfreturn arg1 + arg2 />
</cffunction>
<cfdump var="Define function Using tag.It returns :#add(4,2)#" />
</cfoutput>
luceescript+trycf
writeDump("Define function using cfscript. It returns: "&add(2,3));
public function add(required numeric arg1,required numeric arg2){
return arg1+arg2;
}
```
zackster
05/10/2022, 6:40 AMScott Steinbeck
05/10/2022, 7:08 AMzackster
05/10/2022, 7:13 AMScott Steinbeck
05/10/2022, 7:14 AMAdam Cameron
zackster
05/10/2022, 7:31 AMScott Steinbeck
05/10/2022, 7:32 AMzackster
05/10/2022, 7:33 AMzackster
05/10/2022, 7:35 AMScott Steinbeck
05/10/2022, 7:35 AMserve.sh
, but it looks like none of the styles are loading, they are looking for an assets folder that is not therezackster
05/10/2022, 7:36 AMScott Steinbeck
05/10/2022, 7:37 AMScott Steinbeck
05/10/2022, 7:37 AMzackster
05/10/2022, 7:37 AMzackster
05/10/2022, 7:38 AMzackster
05/10/2022, 7:38 AMScott Steinbeck
05/10/2022, 7:41 AMzackster
05/10/2022, 7:43 AMzackster
05/10/2022, 7:44 AMzackster
05/10/2022, 7:47 AMScott Steinbeck
05/10/2022, 7:57 AMAdam Cameron
Adam Cameron
Adam Cameron
zackster
05/10/2022, 8:23 AMzackster
05/10/2022, 8:24 AMScott Steinbeck
05/10/2022, 5:12 PMAdam Cameron
Scott Steinbeck
05/10/2022, 5:18 PMAdam Cameron
camer@DESKTOP-QV1A45U MINGW64 /c/src/third-party/lucee
$ git clone git@github.com:lucee/lucee-docs.git
Cloning into 'lucee-docs'...
[...]
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'docs/03.reference/01.functions/clearTimeZone/function.md'
'docs/03.reference/01.functions/cleartimezone/function.md'
camer@DESKTOP-QV1A45U MINGW64 /c/src/third-party/lucee
There's only the one file: lucee-docs/docs/03.reference/01.functions/clearTimeZone/function.md
, but I guess the old file is in the DB somewhere.Scott Steinbeck
05/10/2022, 5:20 PMAdam Cameron
275,095ms warn Missing content from Lucee: [file path]
whilst running ./build.sh
I'll let it run....Scott Steinbeck
05/10/2022, 5:29 PMAdam Cameron
Adam Cameron
Adam Cameron
Scott Steinbeck
05/10/2022, 5:30 PMScott Steinbeck
05/10/2022, 5:30 PMAdam Cameron
853,856ms INFO Rendering Documentation (500 / 1473)
I started this before MoD started, and it's still running...Scott Steinbeck
05/10/2022, 5:51 PMAdam Cameron
Adam Cameron
Adam Cameron
Scott Steinbeck
05/10/2022, 5:52 PMAdam Cameron
Adam Cameron
This will spin up a server using CommandBox on port 4040 and open it in your browser.
Err... no it didn'tAdam Cameron
Adam Cameron
<cfcomponent>
<!--- inside the static constructor you can define static variables, this code is executed when the "class" instance is loaded --->
<cfstatic>
<cfset susi=1> <!--- written to the static scope (defining the scope is not necessary) --->
<cfset static.sorglos=2> <!--- again written to the static scope --->
</cfstatic>
<cfcomponent>
I lifted it from the https://docs.lucee.org/guides/lucee-5/component-static.html page and converted to tagsAdam Cameron
Scott Steinbeck
05/10/2022, 7:13 PMAdam Cameron
zackster
05/10/2022, 8:23 PM