From 7aad83842cdab620e91fe73ac4731d75eb9c283a Mon Sep 17 00:00:00 2001 From: José Bollo Date: Wed, 9 Aug 2017 11:07:31 +0200 Subject: afb-api-js: first step for javascript bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the javascript interpreter duktape 2.3.0 for bindings written in javascript. This is a first integration. Much more work has to be done for fully providing an interesting feature. The option --jsapi allows to load a file that contains javascript. It exports its verbs using exports.verbname = function(req, args) ... where req is the opaque request object and args is the object representing arguments as returned by afb_req_json. The available functions are: - require(path) module load (ex system = require("afb:system")) - afb_req_success(req, result, info) - afb_req_fail(req, status, info) - result = afb_req_subcall(req, api, verb, args) Change-Id: I9e6f14acf3c291ce6a56a1fe88e93afbc4089106 Signed-off-by: José Bollo --- .gitignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index d7183090..17e1ae9d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,12 +7,11 @@ dist/* .dep.inc CMakeFiles/ CMakeCache.txt -nbproject/private/* cmake_install.cmake .vscode stress-out* node_modules/ _book/ *.kdev4 -nbproject/* +nbproject/ doxygen-output -- cgit 1.2.3-korg