]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/calculator/calculator.factor
Reformat
[factor.git] / extra / webapps / calculator / calculator.factor
index 402143b947da5f3448ea946633c662b1c9968d96..0b5667c3cf4b2ddf2d5fb75d785b9c53cd41700a 100644 (file)
@@ -1,8 +1,9 @@
 ! Copyright (C) 2008, 2009 Slava Pestov.
-! See http://factorcode.org/license.txt for BSD license.
-USING: accessors furnace.actions furnace.alloy furnace.redirection
-html.forms http.server http.server.dispatchers math namespaces urls
-validators webapps.utils ;
+! See https://factorcode.org/license.txt for BSD license.
+USING: accessors furnace.actions furnace.alloy
+furnace.redirection html.forms http.server
+http.server.dispatchers kernel math namespaces urls validators
+webapps.utils ;
 IN: webapps.calculator
 
 TUPLE: calculator < dispatcher ;
@@ -22,7 +23,7 @@ TUPLE: calculator < dispatcher ;
             { "y" [ v-number ] }
         } validate-params
 
-        URL" $calculator" "x" value "y" value + "z" set-query-param
+        URL" $calculator" clone "x" value "y" value + "z" set-query-param
         <redirect>
     ] >>submit ;