[Lift] Re: does this look ok?

2009-10-19 Thread Derek Chen-Becker
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?

2009-10-18 Thread Jack Widman
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?

2009-10-18 Thread Naftoli Gugenheim
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
-~--~~~~--~~--~--~---