]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/mason/counter/counter.factor
http.server.responses: adding <html-content>, use it.
[factor.git] / extra / webapps / mason / counter / counter.factor
1 ! Copyright (C) 2010 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors furnace.actions http.server.responses
4 webapps.mason.backend math.parser ;
5 IN: webapps.mason.counter
6
7 : <counter-action> ( -- action )
8     <action>
9     [
10         [
11             counter-value number>string
12             <text-content>
13         ] with-mason-db
14     ] >>display ;