How to use the velocity.java.renderOnce function in velocity

To help you get started, we’ve selected a few velocity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openworm / org.geppetto.frontend / src / main / webapp / GEPPETTO.Backend.js View on Github external
app.get('/org.geppetto.frontend/geppetto', function (req, res) {
	velocity.renderOnce("geppetto.vm", {}, "build/", function(err, data) {
	    if (err) {
	        console.error(err);
	        return;
	    }
	    res.send(data.toString());
	});

});