add define-form

db4
Doug Coleman 2007-12-13 20:47:42 -06:00
parent 114ee74041
commit 7640e616bb
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ SYMBOL: template-path
: define-action ( word params -- )
f define-authenticated-action ;
: code>quotation ( word/quot -- quot )
dup word? [ 1quotation ] when ;
: define-form ( formword actionword params -- )
dupd define-action
swap code>quotation "form-quotation" set-word-prop ;
: define-redirect ( word quot -- )
"action-redirect" set-word-prop ;