Mercurial > urweb
diff src/cjrize.sml @ 741:f7e2026dd5ae
Returning a blob as page result
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 26 Apr 2009 09:02:17 -0400 |
parents | 4c5796512edc |
children | 8688e01ae469 |
line wrap: on
line diff
--- a/src/cjrize.sml Sat Apr 25 14:47:16 2009 -0400 +++ b/src/cjrize.sml Sun Apr 26 09:02:17 2009 -0400 @@ -319,6 +319,14 @@ in ((L'.EError (e, t), loc), sm) end + | L.EReturnBlob {blob, mimeType, t} => + let + val (blob, sm) = cifyExp (blob, sm) + val (mimeType, sm) = cifyExp (mimeType, sm) + val (t, sm) = cifyTyp (t, sm) + in + ((L'.EReturnBlob {blob = blob, mimeType = mimeType, t = t}, loc), sm) + end | L.EStrcat (e1, e2) => let