> 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