title: cfsavecontent passing variables dynamically
body: <p>I have a cfm page with html and css, needed for an email template. I have a sender.cfm file, which will include the template file and dynamically replace variables in the template file. </p>
  
  <p>Below is a part of the template file</p>
  
  <pre><code> &lt;td valign="top" align="left" style="padding:0 0 10px 0;"&gt;                 
      &lt;p style="font-family:Arial, Helvetica, sans-serif; font-size:14px; line-height:18px; margin:8px 10px 10px 0; padding:0; color:#102044;"&gt;
          [INSERT QUESTION 1]
      &lt;/p&gt;  
   &lt;/td&gt; 
  </code></pre>
  
  <p>Now in the sender file, I have a cfquery which is fetching the questions. I am doing something like this:</p>
  
  <pre><code>&lt;cfsavecontent variable="questions"&gt;
      &lt;cfoutput&gt;&lt;strong&gt;#get_ques_text.questiontext#&lt;/strong&gt;&lt;/cfoutput&gt;
  &lt;/cfsavecontent&gt;  
  
  &lt;cfinclude template="weekly_template.cfm"&gt;
  
  &lt;cfset nl_template = replaceNoCase(nl_template, "[INSERT EMAIL TITLE]"
                          , "WEEKLY EMAIL") /&gt;
  
  &lt;cfset nl_template = replaceNoCase(nl_template, "[INSERT QUESTION 1]"
                          , questions)/&gt;
  </code></pre>
  
  <p>I want to be able to get the list of all the questions in the <code>cfsavecontent</code> variable. However, in the code above, I am only getting the first one. Any ideas why?</p>