Also,

If you want to return the response HTML verbatim, you can return

{response, [{html, <<"<html><body>...</html>">>}]}

If you want to return something that will be further processed by the
'phased' mechanism, you can return

{response, [{rendered, <<"<div>...</div>">>}]}

Yariv

On Tue, Mar 4, 2008 at 2:14 PM, jm <[EMAIL PROTECTED]> wrote:
>
>
>  This is something I missed at first as well. Try {response, Elems} where
>  Elems is a yaws tuple, eg
>
>  {response, {ehtml, {form, [{action, Path}],
>                          {input, [{type, text}, FieldData,
>                          []}}
>
>
>  see also http://yaws.hyber.org/dynamic.yaws
>
>  hope this helps.
>
>  Jeff.
>
>
>
>  Colm wrote:
>  > Hi,
>  >
>  > I have a scneario where I would like to have a controller and no view
>  > and just return html directly from the controller.
>  >
>  > Is there a way to do this?
>  > If so can someone please provide a short example of how to do this? I
>  > was reading list archives and seen Yariv mention that it was possible
>  > to do this with the "response" tuple but I couldn't figure out what
>  > the arguments would be.    Will erlyweb be happy if there is no view
>  > component defined or will I have to define a dummy one to keep things
>  > happy, I expect not just checking.
>  >
>  > Thanks.
>  > >
>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to