href: link.url}, link.title); //yields &lt;a href=&quot;http://google.com&quot;&gt;Google&lt;/a&gt;</code></pre>
<p>Here&#39;s a less trivial example:</p>
<pre><code class="lang-javascript">var links = [
    {title: &quot;item 1&quot;, url: &quot;/item1&quot;},
    {title: &quot;item 2&quot;, url: &quot;/item2&quot;}
    {title: &quot;item 3&quot;, url: &quot;/item3&quot;}
];

m.render(document.body, [
    m(&quot;ul.nav&quot;, [
        m(&quot;li&quot;, links.map(function(link) {
            return m(&quo