I was playing with your test page and was confused at first about what the Template Variables field was for. Then I read your post more carefully and found the bit about 'global' variables.

After seeing a couple of examples of templates elsewhere, I modified your default template to look so:

Hello World! Welcome, <cfoutput query='bar'>#foo_name#</cfoutput>! <cfoutput>Math result = #res#</cfoutput>
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, "Jim"! Math result = 5**3
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:
"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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.