[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Ross Mellgren
Just call it: class FirstSnippet { def render(ns: NodeSeq): NodeSeq = { bind(foobar, ns, otherSnippet - new SecondSnippet.render _) } } class SecondSnippet { def render(ns: NodeSeq): NodeSeq = divhello!/div } -Ross On Oct 21, 2009, at 7:06 PM, sunanda

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Naftoli Gugenheim
That needs to be new SecondSnippet().render or (new SecondSnippet).render - Ross Mellgrendri...@gmail.com wrote: Just call it: class FirstSnippet { def render(ns: NodeSeq): NodeSeq = { bind(foobar, ns, otherSnippet - new

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Ross Mellgren
So true. I need a REPL built in to my email client ;-) -Ross On Oct 21, 2009, at 9:50 PM, Naftoli Gugenheim wrote: That needs to be new SecondSnippet().render or (new SecondSnippet).render - Ross Mellgrendri...@gmail.com wrote: Just call it:

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Naftoli Gugenheim
How about building an email client into your REPL? ;) - Ross Mellgrendri...@gmail.com wrote: So true. I need a REPL built in to my email client ;-) -Ross On Oct 21, 2009, at 9:50 PM, Naftoli Gugenheim wrote: That needs to be new SecondSnippet().render

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Ross Mellgren
Screw it, I'll just do all three in emacs. GUIs are for wimps anyway, right? -Ross On Oct 21, 2009, at 10:03 PM, Naftoli Gugenheim wrote: How about building an email client into your REPL? ;) - Ross Mellgrendri...@gmail.com wrote: So true. I need a

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Jim Barrows
Doesn't emacs already do all three? Sent on the Now Network™ from my Sprint® BlackBerry -Original Message- From: Ross Mellgren dri...@gmail.com Date: Wed, 21 Oct 2009 22:18:29 To: liftweb@googlegroups.com Subject: [Lift] Re: Calling a method from other snippet Screw it, I'll just do

[Lift] Re: Calling a method from other snippet

2009-10-21 Thread Ross Mellgren
- From: Ross Mellgren dri...@gmail.com Date: Wed, 21 Oct 2009 22:18:29 To: liftweb@googlegroups.com Subject: [Lift] Re: Calling a method from other snippet Screw it, I'll just do all three in emacs. GUIs are for wimps anyway, right? -Ross On Oct 21, 2009, at 10:03 PM, Naftoli