| 
									
										
										
										
											2010-09-04 21:05:28 -04:00
										 |  |  | ! Copyright (C) 2010 Slava Pestov. | 
					
						
							|  |  |  | ! See http://factorcode.org/license.txt for BSD license. | 
					
						
							|  |  |  | USING: accessors furnace.actions math.parser | 
					
						
							| 
									
										
										
										
											2010-09-17 02:52:49 -04:00
										 |  |  | http.server.responses webapps.mason.backend ;
 | 
					
						
							| 
									
										
										
										
											2010-09-04 21:05:28 -04:00
										 |  |  | IN: webapps.mason.increment-counter | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | : <increment-counter-action> ( -- action )
 | 
					
						
							|  |  |  |     <action> | 
					
						
							|  |  |  |     [ | 
					
						
							|  |  |  |         [ | 
					
						
							|  |  |  |             increment-counter-value | 
					
						
							|  |  |  |             number>string "text/plain" <content> | 
					
						
							|  |  |  |         ] with-mason-db | 
					
						
							|  |  |  |     ] >>submit ;
 |