Re:Lucee: A dynamic, Java-based, tag and scripting language ...
by aidos on Thursday September 13, 2018 @05:03AM
(#17977106)
Hello World in Lucee would simply be:
echo "Hello World" > hello.cfm
I think the thing that's missing here is the context on the history. For most people using this project, they've come from CF (Adobe). It was "Hey, using CF and having a hard time with Adobe's code quality? We've made an opensource alternative! It's identical, but without the bugs and with these extra features..." And I guess the story for starting with it from scratch hasn't been more carefully considered.
Re:Lucee: A dynamic, Java-based, tag and scripting language ...
by isapir on Thursday September 13, 2018 @03:48PM
(#17981830)
As @aidos and @abraham_lincoln pointed out, an "Hello World" example is simply putting that string in a file named hello.cfm on the root of the web application and calling it with your browser, e.g. http://localhost:8080/hello.cfm
Before you can do that though, you need to install the CFML engine. I recently published a tutorial that shows how to install Lucee in Tomcat very easily:
https://www.youtube.com/watch?v=nuugoG5c-7M
http://blog.rasia.io/blog/how-to-easily-setup-lucee-in-tomca...
To make your Hello World example a bit more interesting, you can add the tag `<cfoutput>` with some dynamic content, e.g.
<cfoutput>
Hello World on #dateTimeFormat(now(), "mm/dd/yyyy 'at' HH:nn:ss")#
</cfoutput>
See example at https://trycf.com/gist/226c10cbe74d4083743a617b25398224/luce...
Re:Lucee: A dynamic, Java-based, tag and scripting language ...
by nunobrito on Monday September 17, 2018 @03:40PM
(#18009262)
This would be a great "Hello World" snippet to thrill the newcomers on the website. That simple paragraph as you wrote.
Enough already to entice further curiosity now to explore on the dynamic content portion and start thinking on where this thing can be used on my daily tasks. All the best with Lucee.
Re:Lucee: A dynamic, Java-based, tag and scripting language ...
by abraham_lincoln on Thursday September 13, 2018 @07:53AM
(#17977861)
<cfdump var="Hello World!">
or
writeDump("Hello World!");
Right on the front page a simple snippet example would already do wonders. Especially if the "rapid prototyping" is a key attribute.