[Lift] Re: does this look ok?
Just my 2 cents, but if you're having a problem with some code it helps to explain what the problem is along with the code that you're sending. Otherwise, it's like an interview question :) On Sun, Oct 18, 2009 at 5:12 PM, jack wrote: > > Does this code look ok? > > def createDisplay(blogs:List[Blog]):NodeSeq = { > >{ > for {blog <- blogs} yield {blog.url} a> {blog.displayScore} >} > > } > > def render = { bind("joop" -> createDisplay(blogs)) } > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: does this look ok?
yes. I think I found the problem elsewhere in the logic. thanks. On Sun, Oct 18, 2009 at 11:07 PM, Naftoli Gugenheim wrote: > I think so... Does it compile? > > > On Sun, Oct 18, 2009 at 7:13 PM, jack wrote: > >> >> Does this code look ok? >> >> >> def createDisplay(blogs:List[Blog]):NodeSeq = { >> >> >>{ >> for {blog <- blogs} yield {blog.url}> a> {blog.title} >> } >> >> } >> >> def render = { bind("joop" -> createDisplay(blogs)) } >> >> > > > > -- Jack --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: does this look ok?
I think so... Does it compile? On Sun, Oct 18, 2009 at 7:13 PM, jack wrote: > > Does this code look ok? > > > def createDisplay(blogs:List[Blog]):NodeSeq = { > > >{ > for {blog <- blogs} yield {blog.url} a> {blog.title} > } > > } > > def render = { bind("joop" -> createDisplay(blogs)) } > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---