title: Dojo creating DOM nodes dynamically
body: <p>I'm trying to create a custom Dojo widget for my application.</p>
  
  <pre><code>&lt;!-- Dojo widget Template  --&gt;
  &lt;div class="newsHomeWidget"&gt;
      &lt;table width="100%" cellspacing="0" cellpadding="0"&gt;
          &lt;tbody dojoAttachPoint="newsHomeTableTbody"&gt;
              &lt;!-- May be we need to repeat this code dynamically --&gt;
              &lt;tr&gt;
                  &lt;td class="ncmseparate"&gt;
                      &lt;a class="wordwrap" dojoAttachPoint="newsHomeLink"&gt;&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This widget is to display the list of News that I get from my service.I will get the Data in <code>JSON</code> format. I need to display the News Text in the anchor tag whose class is <code>wordWrap</code> and the link to the news as the <code>href</code> of this anchor tag.</p>
  
  <p>Since there can be multiple news, I need to repeat  for each News. I would like to do this in the best way. I can manually create the DOM for each value of News using dojo.create or <code>dojo.place</code>.But that requires lot of hard coding. Could you please suggest me the best way to do this? Is it possible to do that in the Widget template itself?</p>