2 USING: help.markup help.syntax db multiline ;
4 HELP: init-furnace-tables
5 { $description "Initializes database tables used by asides, conversations and session management. This word must be invoked inside a " { $link with-db } " scope." } ;
8 { $values { "responder" "a responder" } { "db" "a database descriptor" } { "responder'" "an alloy responder" } }
9 { $description "Wraps the responder with support for asides, conversations, sessions and database persistence." }
11 "The " { $vocab-link "webapps.counter" } " vocabulary uses an alloy to configure the counter:"
13 <" : counter-db ( -- db ) "counter.db" <sqlite-db> ;
18 main-responder set-global
24 { $values { "db" "a database descriptor" } }
25 { $description "Starts a timer which expires old session state from the given database." } ;
27 ARTICLE: "furnace.alloy" "Furnace alloy responder"
28 "The " { $vocab-link "furnace.alloy" } " vocabulary implements a convenience responder which combines several Furnace features into one easy-to-use wrapper:"
30 { $link "furnace.asides" }
31 { $link "furnace.conversations" }
32 { $link "furnace.sessions" }
33 { $link "furnace.db" }
35 "A word to wrap a responder in an alloy:"
36 { $subsection <alloy> }
37 "Initializing database tables for asides, conversations and sessions:"
38 { $subsection init-furnace-tables }
39 "Start a timer to expire asides, conversations and sessions:"
40 { $subsection start-expiring } ;
42 ABOUT: "furnace.alloy"