From 929a1c45db00904e9a5a27b051179895438ea37c Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 27 Nov 2021 08:05:57 +0100 Subject: [PATCH] [+] add 2 functions helper to create web_arg for bool and for float argument --- web/web_arg_utils.anubis | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+), 0 deletions(-) diff --git a/web/web_arg_utils.anubis b/web/web_arg_utils.anubis index 8f351dc..6b6e810 100644 --- a/web/web_arg_utils.anubis +++ b/web/web_arg_utils.anubis @@ -108,6 +108,24 @@ public define Web_arg web_arg ( String name, + Bool value + )= + web_arg(name, to_String(value)) +. + +public define Web_arg + web_arg + ( + String name, + Float value + )= + web_arg(name, float_to_string(value, 10)) +. + +public define Web_arg + web_arg + ( + String name, DB_id value )= web_arg(name, to_String(value)) -- libgit2 0.21.4