Currently I have some code that runs over a bunch of objects. One of these objects has a 'thumbnailUrl' and in my code I have:
<img src={ "/thumbnailProxy?url=" + Helpers.urlEncode(userResponse.thumbnailUrl }/>
The thumbnailProxy is just a LiftRules.DispatchPF matcher that simply proxies the download of the image in the "url" parameter.
How, I want to do something more stateful because I require more information in the userResponse than just the URL. I want the thumbnailProxy to serve the image using the userResponse object above. I could invent some identification for this object with a lookup, but I'd rather 'close' over the userResponse object in the object that serves the <img> src.
Is this possible? Something a bit like the way Javascript function invocation works? (I don't think I want to use JS if I can avoid it here).
Dan