tenorviol / xjs2

html5 focused rewrite of xjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xjs

TODO

<?js
  
  function userName(uid) {
    var async = out.async();
    lookupName(uid, function (name) {
      out.write(<a href={"/profile?id="+uid}><?= name ?></a>);
      async.end();
    });
  }

?>
<ul>
  <?js
    uids.forEach(function (uid) {
      out.write(<li><?= userName(uid) ?></li>);
    });
  ?>
</ul>

About

html5 focused rewrite of xjs


Languages

Language:JavaScript 100.0%