[racket] HTML element to string (and vice versa)

2011-12-08 Thread J G Cho
To HTML parser experts: I am trying to transform a div tag in the following HTML document: (define an-html (h:read-html (open-input-string (string-append "My title" "Hello worldreplace meTesting!" "" I want replace me to read something like I am replaced. I am trying (wit

Re: [racket] syntax-id-rules

2011-12-08 Thread Harry Spier
On Thu, Dec 8, 2011 at 4:03 PM, David Vanderson wrote: > I can't speak authoritatively, but I don't think that an identifier macro > captures any syntax before the identifier.  I think set! is a special case. > Many thanks David, this makes everything much clearer. Harry __

Re: [racket] raco auto - automatically compile dependencies

2011-12-08 Thread Jon Rafkind
After some more experiments it appears that 'raco make' actually does all of this. Oh well, alls well that ends well! On 12/08/2011 03:43 PM, Jon Rafkind wrote: I created a new tool for raco called 'auto' and put it on github. The purpose of the tool is to automatically compile dependencies an

[racket] Whalesong 1.12 released

2011-12-08 Thread Danny Yoo
Hi everyone, Whalesong 1.12 includes a few more error traps to catch misuse of web-world primitives; the major change is that using the web-world handler functions outside the lexical context of a big-bang is now illegal. So the following buggy code: (define a-view (initial-view ...)) (bi

Re: [racket] dispatch-rules

2011-12-08 Thread Jay McCarthy
It can handle them, it's just it means that you want 'dashboard' to be called when the user visits "invoice%2Fdashboard" If you want it to be called when the user visits "invoice/dashboard", then you'd do ("invoice" "dashboard") The list in dispatch-rules corresponds to elements of the URL path.

[racket] dispatch-rules

2011-12-08 Thread Jordan Schatz
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") dashb

[racket] raco auto - automatically compile dependencies

2011-12-08 Thread Jon Rafkind
I created a new tool for raco called 'auto' and put it on github. The purpose of the tool is to automatically compile dependencies and make sure they are in sync with their source. https://github.com/kazzmir/raco-auto A new zo will be created in the following cases * no zo exists * source .r

Re: [racket] syntax-id-rules

2011-12-08 Thread David Vanderson
On 12/08/2011 09:48 AM, Harry Spier wrote: I get the error for (get array-element v1[1 1 1] "expand: unbound identifier in module in: get" I can't speak authoritatively, but I don't think that an identifier macro captures any syntax before the identifier. I think set! is a special case. and

[racket] syntax-id-rules

2011-12-08 Thread Harry Spier
Dear list members, As an exercise to learn Racket macros I'm setting up macros as getters and setters on multi-dimensional arrays where the array reference is array[dimension1 dimension2 ...] This is useful for my application but the main reason is to learn macros. I'm able to set up getter and s