Here's a feature request :)

In the syntax for "$var foo: bar" -- it would be really handy if you
could define a list there.  For instance,

#File test.html
$var scripts = ['prototype.js', 'baz.js']

#File base.html
$def with (contents)

$for script in contents.scripts:
    <script src="/static/$script"></script>

$:contents

Obviously similar things could be done with scripts.  Maybe there's
another obvious way to do things like this, but this seems like a nice
way to do it to me.  Thoughts?

-Justin
--~--~---------~--~----~------------~-------~--~----~
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