html5 focused rewrite of xjs
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
example
lib
src
test
index.js
makefile
package.json
readme.md
todo.md

readme.md

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>