Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Jordan Johnson
On Feb 8, 2012, at 10:17 AM, Jay McCarthy jay.mccar...@gmail.com wrote: web-server/templates uses scribble/text So, if you return a function, then it will be called. I'm not sure I understand the implication: that I could achieve what I'm after by wrapping the images in a function? I'm not

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Eli Barzilay
Yesterday, Jay McCarthy wrote: web-server/templates uses scribble/text So, if you return a function, then it will be called. We could also change scribble/text to support a struct/class property for JIT transformation. Does that sound good? Is that okay with you, Eli? Why a property?

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Jay McCarthy
On Thu, Feb 9, 2012 at 11:45 AM, Jordan Johnson j...@fellowhuman.com wrote: On Feb 8, 2012, at 10:17 AM, Jay McCarthy jay.mccar...@gmail.com wrote: web-server/templates uses scribble/text So, if you return a function, then it will be called. I'm not sure I understand the implication: that I

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Jay McCarthy
On Thu, Feb 9, 2012 at 12:19 PM, Eli Barzilay e...@barzilay.org wrote: Yesterday, Jay McCarthy wrote: web-server/templates uses scribble/text So, if you return a function, then it will be called. We could also change scribble/text to support a struct/class property for JIT transformation.

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-09 Thread Eli Barzilay
A few minutes ago, Jay McCarthy wrote: On Thu, Feb 9, 2012 at 12:19 PM, Eli Barzilay e...@barzilay.org wrote: Yesterday, Jay McCarthy wrote: web-server/templates uses scribble/text So, if you return a function, then it will be called. We could also change scribble/text to support a

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-08 Thread Jay McCarthy
web-server/templates uses scribble/text So, if you return a function, then it will be called. We could also change scribble/text to support a struct/class property for JIT transformation. Does that sound good? Is that okay with you, Eli? Jay On Tue, Feb 7, 2012 at 4:50 PM, Jordan Johnson

[racket] Ensuring data fed to web-server/templates is textual

2012-02-07 Thread Jordan Johnson
Hi all, I'm using web-server/templates to generate text, and the data in variables I reference in the template include s-exps that may, in some cases, contain image% objects. I want it to render the image%s as plain text; even just the string IMAGE or similar would be adequate. So, my

Re: [racket] Ensuring data fed to web-server/templates is textual

2012-02-07 Thread Neil Van Dyke
Jordan Johnson wrote at 02/07/2012 06:50 PM: I'm using web-server/templates to generate text, and the data in variables I reference in the template include s-exps that may, in some cases, contain image% objects. I want it to render the image%s as plain text; even just the string IMAGE or