[racket] dispatch-rules

From: Jordan Schatz (jordan at noionlabs.com)
Date: Thu Dec 8 18:03:27 EST 2011

The docs don't seem to specify, and I can't get it to work, so am I
correct that dispatch-rules cant handle url patterns that contain
slashes?

;;Doesn't work
(define-values (static-dispatch static-url)
  (dispatch-rules
  ;;None of these functions take any arguments
   [("invoice/dashboard") dashboard]
   [("invoice/edit-company") edit-company]
   [("invoice/export-customers") export-customers]
   [("invoice/import-customers") import-customers]
   [("invoice/create-customer") create-customer]
   [("invoice/list-customers") list-customers]
   [("invoice/export-invoices") export-invoices]
   [("invoice/import-invoices") import-invoices]
   [("invoice/create-invoice") create-invoice]
   [("invoice/list-invoices") list-invoices]
   [("invoice/payment-methods") payment-methods]
   [("invoice/logout") logout]))

-Jordan


Posted on the users mailing list.