After seeing a couple of examples of templates elsewhere, I modified your default template to look so:
For those who haven't seen the default template, I removed the first two lines that initialize the template variables foo_name and res. I then used the following in the Template Variables field: foo_name="Jim",res=5**3 I noticed that the res value was not calculated in the Parser Output window:Hello World! Welcome, <cfoutput query='bar'>#foo_name#</cfoutput>! <cfoutput>Math result = #res#</cfoutput>
What function or syntax would be necessary necessary in the template to cause it to interpolate the expression? Apologies if this is a silly question, but I don't know anything about Cold Fusion though I found your post interesting and as a nutty but wise monk once chided me:Hello World! Welcome, "Jim"! Math result = 5**3
"testers" can't hurt ;)(and usually, they learn something)Touché.
--Jim
In reply to Re: CFML Parser - testing. Design/Implementation suggestions.
by jlongino
in thread CFML Parser - testing. Design/Implementation suggestions.
by vladb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |