! Copyright (c) 2008, 2009 Slava Pestov
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors kernel math.order namespaces combinators.short-circuit call
+USING: accessors kernel math.order namespaces combinators.short-circuit
html.forms
html.templates
html.templates.chloe
-locals
http.server
http.server.filters
furnace.utilities ;
: wrap-boilerplate? ( response -- ? )
{ [ code>> 200 = ] [ content-type>> "text/html" = ] } 1&& ;
-M:: boilerplate call-responder* ( path responder -- )
+M:: boilerplate call-responder* ( path responder -- response )
begin-form
path responder call-next-method
responder init>> call( -- )