Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion <title>s and other non-component data
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yariv Sadan  
View profile  
 More options Nov 24 2007, 5:31 pm
From: "Yariv Sadan" <yarivsa...@gmail.com>
Date: Sat, 24 Nov 2007 14:31:24 -0800
Local: Sat, Nov 24 2007 5:31 pm
Subject: Re: [erlyweb-list] Re: <title>s and other non-component data

> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.