The erlyweb documentation states to return arbitary yaws tuples the
app_controller should surround it in a {response, Elem} tuple. This
doesn't seem to work for {streamcontent, MimeType, FirstChunk}. I
checked that it works directly with yaws with an example similar to
http://yaws.hyber.org/stream.yaws but erlyweb bombs with
ERROR erlang code crashed:
File: appmod:0
Reason: {invalid_response,[{streamcontent,"image/gif",<<>>}],
"Response values other than 'data' and 'ewc'
tuples must be enclosed a 'response' tuple. In addition, subcomponents
may only return 'data' and/or 'ewc' tuples."}
this seems to suggest that erlyweb is calling it's render_subcomponent/2
which is not what I think I'm after. I've tried a few other combinations
to try and get this working, but seem to be missing something. Anyone
care to tell me where I'm going wrong.
Jeff.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---