Thank you for your answers. I'll try to include some more detail
because I was not able to apply your suggestions to my code.
My template has a section like this:
<lift:T.list>
<table>
<question.list>
<tr><td><question:text/></td></tr>
</question.list>
</table>
</lift:T.list>
while my snippet looks more or less like this:
class T {
val questions = "One" :: "Two" :: "Three" :: Nil
private def doList()(html:NodeSeq): NodeSeq = {
questions.flatMap(q => bind ("question", html,
"text" -> Text(q))
}
def list(html:NodeSeq) = {
bind("question", html, "list" -> doList() )
}
}
-Magnus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---