Weaveworld
Using Weaveworld with Node.js and Express.
License for weaveworld Node.js module: MIT.
License for Weaveworld: see 'public/LICENSE' file or here.
Direct access for w.min.js
and w.css
.
Example:
const app= bodyParser=;const weaveworld= app;app;app; // Optional: publishing files from a folder, tooweaveworlddir=__dirname+'/public'; // Optional: handling REST API requestsapp ;// ... // Optional: handling ONCE-style server callsweaveworld;// ... // Mandatory: set routingappall'/*'weaveworldroute;
Publishing files from a directory.
E.g.,
weaveworlddir=__dirname+'/public';