Hire Me! I'm currently looking for my next role in developer relations and advocacy. If you've got
an open role and think I'd be a fit, please reach out. You can also find me
on LinkedIn.
One question I see asked often is if you can use CFML tags in CFSCRIPT blocks. The technical answer is no. However, if you have CFMX, you can write wrapper UDFs for those tags and then call them from cfscript. This allows you to do stuff like:
<cfscript>
if(foo) location(newURL);
else {
mail(toAddress,fromAddress,subject,body);
}
For a set of example UDFs in this area, see the CFMLLib at CFLib.