Looks like storify took my dictionary of arrays and flattened it. Hrm.

On 9/5/07, Bjorn Tipling <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks that worked, but only sort of. Funny thing is it iterated
> through the characters in the string of the last element in the list
> that is in article Data instead of each item in the list. Why would it
> do that??
>
> On 9/5/07, Tzury <[EMAIL PROTECTED]> wrote:
> >
> > > I would like to do something like this:
> > >
> > > <div id="articleList">
> > > $for article in articleData:
> > >     <h2>article.title</h2>
> > >    <p>article.content</p>
> > > </div>
> > >
> > > But it doesn't work for me :/
> >
> > pay attention to those two and your templates will fly.
> >
> > a) the '$' sign, b) indentation
> >
> > a) (missing in your code)
> >
> > $for article in articleData:
> >     <h2>$article.title</h2>
> >     <p>$article.content</p>
> >
> > b)
> > You must make sure you keep indentation correctly as you would with
> > standard python code.
> > as I see it in here <h2> and <p> are not aligned correctly
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to