> How does that stack? How would I return two {ewc}s? Like this?:
>
> {response,
> [{phased_vars,
> [{title, "foo"},
> {meta, "bar"}],
> {body, [{ewc, navbar, [A]}
> {ewc, cookies, [A, cookies:find()]}]}]}.
>
> It looks good though; if I'm returning phased values like that, I'm
> probably setting headers and whatnot, since I'm probably the initial
> {ewc}. The only problem is that only initial {ewc}s can do it, not
> nested ones (unless there are many levels of {phased,ewc...}). That's
> fine for my purposes, but I don't know about most people.
This limitation seems resonable to me too. The main need for the
phased_vars feature is being able to set title, headers, etc, and
those are for the most part determined by the top level ewc, not its
subcomponents. If at some point we realize this is insufficient we can
do the work to remove this limitation, but for now I think it strikes
the best balance between features and ease of implementation.
Yariv
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---