Update mithril.md

This commit is contained in:
webcss 2015-04-03 22:53:42 +02:00
parent f7413dc6e3
commit 85894a1536

View file

@ -100,10 +100,12 @@ var links = [
]; ];
m.render(document.body, [ m.render(document.body, [
m("ul.nav", [ m("ul.nav",
m("li", links.map(function(link) { links.map(function(link) {
return m("a", {href: link.url}, link.title) return m("li",
})) m("a", {href: link.url}, link.title)
);
})
]) ])
]); ]);
``` ```