title: codeigniter template parsing
body: <p>How template parsing in codeigniter actually works ?</p>
  
  <p>I have the following part in a  view file</p>
  
  <pre><code>&lt;h2&gt;{blog_heading}&lt;/h2&gt;
  &lt;div&gt;{blog_entries}&lt;/div&gt;
  </code></pre>
  
  <p>and in controller</p>
  
  <pre><code>$this-&gt;load-&gt;library('parser');
  
  $data = array(
              'blog_heading' =&gt; 'My Blog Title',
              'blog_entries' =&gt; $products_array()
              );
  
  $this-&gt;parser-&gt;parse('blog_template', $data);
  </code></pre>
  
  <p>it works well , but the problem is that i have many tags like this, so do i need to define everything on controller ?</p>
  
  <p>the problem is with performance , user's wont use all the tags every time.</p>
  
  <p>Please help me to solve the problem.</p>
  
  <p>Thanks</p>