diff --git a/web/js_tools.anubis b/web/js_tools.anubis index 99ad31b..158eb3b 100644 --- a/web/js_tools.anubis +++ b/web/js_tools.anubis @@ -6,6 +6,8 @@ * © Calexium */ +read tools/basis.anubis + define List(Word8) make_js_string ( @@ -35,3 +37,11 @@ public define String ) = implode(make_js_string(explode(str), [])). + +public define String + format_js_function_call + ( + String name, + List(String) args + ) = + name + "(" + concat(args, ",") + ");". -- libgit2 0.21.4