The reduction of code we saw in the previous code example was achieved using the other language syntax that Railo Server supports. This syntax is known as CFScript.
Similar to the <SCRIPT>
tag in HTML, we are able to use the <cfscript> tag in our CFML templates to use the CFScript syntax. This is very similar to ECMAScript
(or JavaScript) in its general notation.
You can think of it as CFML, but without the <cf
at the start of a tag and the >
at the end. Or another way of looking at it is that we are calling the <cfset>
tag without having to use the <cfset>
tag.
Let's look at some of the differences between the tag-based CFML language and its CFSC counterpart.