|
|
| Author |
Message |
< Yaws mailing list ~ Fwd: Invoking fun() callback from within a yaws module |
| Guest |
Posted: Wed Apr 18, 2007 10:18 pm |
|
|
|
Guest
|
I'm using yaws 1.68 with erl 5.5.2 on OS X 10.4.9.
On 4/18/07, Anders Nygren <anders.nygren@gmail.com> wrote:
> On 4/18/07, Ben Hood <0x6e6562@gmail.com> wrote:
> > Hi all,
> >
>
> Strange, It works for me, on Yaws 1.68 on Linux.
>
> What version are You using?
>
> /Anders
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Apr 18, 2007 10:18 pm |
|
|
|
Guest
|
> Isn't the problem that io:format72 returns ok, while Yaws
> expects something else?
>
> What about replacing line 9 with: {html, io_lib:format("~p", [catch Cback()])}.
Thanks Tobbe, that was the solution. So if I understand you correctly,
the yaws function that invokes the foo module expects the out/1
function to return a certain tuple, whereas io:format/2 doesn't really
return anything?
If this is the case, is there anywhere where I can find anymore
detailed documentation on what return tuples are expected by the
invoking method?
Thanks for your help,
Ben
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Wed Apr 18, 2007 10:27 pm |
|
|
|
Guest
|
>If this is the case, is there anywhere where I can find anymore
>detailed documentation on what return tuples are expected by the
>invoking method?
I think I may have found the answer to this in section 7.6 of the yaws
manual. Most of the return values are fairly intuitive. I was
wondering if there is some deeper infomation about the exact pattern
matches that would be expected on some of the return type, like for
example {content, MimeType, Content}.
Cheers,
Ben
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|