It will be a one-liner in Java soon too, once JEP 408 ("simple web server") has landed. In the meantime, this will do:<p><pre><code> jbang webster@gunnarmorling
</code></pre>
This launches Vert.x, publishing the current directory, via the JBang launcher. Source code is here if you want to see what you actually run: <a href="https://github.com/gunnarmorling/jbang-catalog/blob/master/webster.java" rel="nofollow">https://github.com/gunnarmorling/jbang-catalog/blob/master/w...</a>