1 USING: continuations db db.sqlite http.server io.files kernel namespaces semantic-db tangle tangle.path ;
4 : db-path "tangle-sandbox.db" temp-file ;
5 : sandbox-db db-path sqlite-db ;
6 : delete-db [ db-path delete-file ] ignore-errors ;
8 : make-sandbox ( tangle -- )
11 ensure-root "foo" create-file "First Page" create-node swap has-filename
16 delete-db sandbox-db f <tangle>
17 [ make-sandbox ] [ <tangle-dispatcher> ] bi