From: Bryan Fink <bryan.f...@gmail.com>
Date: Fri, 16 Nov 2007 18:09:01 -0800 (PST)
Local: Fri, Nov 16 2007 9:09 pm
Subject: Re: <title>s and other non-component data
On Nov 16, 6:24 pm, David King <dk...@ketralnis.com> wrote:
> > - A while ago somebody asked a similar question and Bryan Fink
Yeah, it is a bit brittle. But, some tips:
> > suggested returning a tuple of the form {title, Title} from the view > > function, and then later picking up this tuple in the > > html_container_controller and using its value to set the <title> tag. > That does only take into account <title>s, and not any other
1. If you need to return several things for the container to find,
2. ErlTl works just fine with this. The code looks like:
<%@ index(Beer) %>
3. My container controller picks each of these piece out using two
So, the container code looks roughly like:
index(Data) ->
I have to play a few more tricks, though, to account for newlines in
So, that restricts using these tuples to the "top level" component
The idea of adding a {meta, X} tuple to the list of things a
-Bryan
P.S. If you think the idea of a beer_controller is great, you'll love
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.
| ||||||||||||||