[Lift] Re: Templating in lift

2010-01-04 Thread Randinn
Very nice! can I suggest you put an excerpt or a link it in here

http://wiki.github.com/dpp/liftweb

On Jan 4, 11:10 am, Mads Hartmann mads...@gmail.com wrote:
 Hello everyone,
 I just wrote a small blog post that contains an example of how you use
 templates in Lift when you need to iterate over a collection of data.
 This took me a bit of researching and coding to figure out so I'm
 leaving a link to it here encase anyone new to lift is having the same
 problem :)

 http://sidewayscoding.tumblr.com/post/315327937/view-first-templating...

 Also I would appreciate if someone would tell me if this is not the
 idiomatic way to do, I'm new to Scala and Lift so I don't know any
 better, thanks.

 Mads Hartmann Jensen

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: Templating in lift

2010-01-04 Thread Marius
I think it is a really great blog.

One comment if I may. I don't view snippets as controllers at all.
Comparing to Spring MVC for instance AFAIK controllers are the ones
that process the requests and generate data that will be rendered (in
MVC way). Here snippets per say never process requests although they
typically bind user's function that in turn could be compared with
controllers. Snippets just render dynamic markup.


Br's,
Marius

On Jan 4, 2:10 am, Mads Hartmann mads...@gmail.com wrote:
 Hello everyone,
 I just wrote a small blog post that contains an example of how you use
 templates in Lift when you need to iterate over a collection of data.
 This took me a bit of researching and coding to figure out so I'm
 leaving a link to it here encase anyone new to lift is having the same
 problem :)

 http://sidewayscoding.tumblr.com/post/315327937/view-first-templating...

 Also I would appreciate if someone would tell me if this is not the
 idiomatic way to do, I'm new to Scala and Lift so I don't know any
 better, thanks.

 Mads Hartmann Jensen

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.




Re: [Lift] Re: Templating in lift

2010-01-04 Thread Timothy Perrett
Agreed - also, im not sure what you covered that was not covered on the wiki 
article:

http://is.gd/5LDlM

Cheers, Tim

On 4 Jan 2010, at 08:42, Marius wrote:

 I think it is a really great blog.
 
 One comment if I may. I don't view snippets as controllers at all.
 Comparing to Spring MVC for instance AFAIK controllers are the ones
 that process the requests and generate data that will be rendered (in
 MVC way). Here snippets per say never process requests although they
 typically bind user's function that in turn could be compared with
 controllers. Snippets just render dynamic markup.
 
 
 Br's,
 Marius
 
 On Jan 4, 2:10 am, Mads Hartmann mads...@gmail.com wrote:
 Hello everyone,
 I just wrote a small blog post that contains an example of how you use
 templates in Lift when you need to iterate over a collection of data.
 This took me a bit of researching and coding to figure out so I'm
 leaving a link to it here encase anyone new to lift is having the same
 problem :)
 
 http://sidewayscoding.tumblr.com/post/315327937/view-first-templating...
 
 Also I would appreciate if someone would tell me if this is not the
 idiomatic way to do, I'm new to Scala and Lift so I don't know any
 better, thanks.
 
 Mads Hartmann Jensen
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 Lift group.
 To post to this group, send email to lift...@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.
 
 
 

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: Templating in lift

2010-01-04 Thread Mads Hartmann
@Marius
You're right, I guess that would be why they're called Snippets and
not controllers ;)

@Timothy
Just read it and I can't say I cover anything new in the blog post if
you've read the wiki article - I just wasn't aware of that article :)

@Randinn
I won't leave an excerpt or an link on github seeing that there's a
perfect article on that topic already that i wasn't aware of, but
thank you for your comment :)

I've updated the blog with a link to the wiki and the comment by
Marius, I hope that's okay with you Marius?
Thanks

On Jan 4, 10:08 am, Timothy Perrett timo...@getintheloop.eu wrote:
 Agreed - also, im not sure what you covered that was not covered on the wiki 
 article:

 http://is.gd/5LDlM

 Cheers, Tim

 On 4 Jan 2010, at 08:42, Marius wrote:



  I think it is a really great blog.

  One comment if I may. I don't view snippets as controllers at all.
  Comparing to Spring MVC for instance AFAIK controllers are the ones
  that process the requests and generate data that will be rendered (in
  MVC way). Here snippets per say never process requests although they
  typically bind user's function that in turn could be compared with
  controllers. Snippets just render dynamic markup.

  Br's,
  Marius

  On Jan 4, 2:10 am, Mads Hartmann mads...@gmail.com wrote:
  Hello everyone,
  I just wrote a small blog post that contains an example of how you use
  templates in Lift when you need to iterate over a collection of data.
  This took me a bit of researching and coding to figure out so I'm
  leaving a link to it here encase anyone new to lift is having the same
  problem :)

 http://sidewayscoding.tumblr.com/post/315327937/view-first-templating...

  Also I would appreciate if someone would tell me if this is not the
  idiomatic way to do, I'm new to Scala and Lift so I don't know any
  better, thanks.

  Mads Hartmann Jensen

  --

  You received this message because you are subscribed to the Google Groups 
  Lift group.
  To post to this group, send email to lift...@googlegroups.com.
  To unsubscribe from this group, send email to 
  liftweb+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/liftweb?hl=en.

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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: Templating in lift

2010-01-04 Thread Marius
Very neat !!! ... thanks.

I wish Lift official site to have links towards all these cool
articles.

Br's,
Marius

On Jan 4, 12:22 pm, Mads Hartmann mads...@gmail.com wrote:
 @Marius
 You're right, I guess that would be why they're called Snippets and
 not controllers ;)

 @Timothy
 Just read it and I can't say I cover anything new in the blog post if
 you've read the wiki article - I just wasn't aware of that article :)

 @Randinn
 I won't leave an excerpt or an link on github seeing that there's a
 perfect article on that topic already that i wasn't aware of, but
 thank you for your comment :)

 I've updated the blog with a link to the wiki and the comment by
 Marius, I hope that's okay with you Marius?
 Thanks

 On Jan 4, 10:08 am, Timothy Perrett timo...@getintheloop.eu wrote:

  Agreed - also, im not sure what you covered that was not covered on the 
  wiki article:

 http://is.gd/5LDlM

  Cheers, Tim

  On 4 Jan 2010, at 08:42, Marius wrote:

   I think it is a really great blog.

   One comment if I may. I don't view snippets as controllers at all.
   Comparing to Spring MVC for instance AFAIK controllers are the ones
   that process the requests and generate data that will be rendered (in
   MVC way). Here snippets per say never process requests although they
   typically bind user's function that in turn could be compared with
   controllers. Snippets just render dynamic markup.

   Br's,
   Marius

   On Jan 4, 2:10 am, Mads Hartmann mads...@gmail.com wrote:
   Hello everyone,
   I just wrote a small blog post that contains an example of how you use
   templates in Lift when you need to iterate over a collection of data.
   This took me a bit of researching and coding to figure out so I'm
   leaving a link to it here encase anyone new to lift is having the same
   problem :)

  http://sidewayscoding.tumblr.com/post/315327937/view-first-templating...

   Also I would appreciate if someone would tell me if this is not the
   idiomatic way to do, I'm new to Scala and Lift so I don't know any
   better, thanks.

   Mads Hartmann Jensen

   --

   You received this message because you are subscribed to the Google Groups 
   Lift group.
   To post to this group, send email to lift...@googlegroups.com.
   To unsubscribe from this group, send email to 
   liftweb+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/liftweb?hl=en.

--

You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to lift...@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.