Great suggestions - thanks guys!

Jeppe Nejsum Madsen wrote:
> Timothy Perrett <timo...@getintheloop.eu> writes:
> 
>> Ahhhhh. In that case, does this help:
>>
>>      Menu(Loc("Some", List("some","page"), "Some",
>>        EarlyResponse(() => {
>>      // do some response here,
>>          // return Empty if you dont want
>>          // a response but a filter style
>>          // intercept.
>>          Empty
>>        })
>>      ))
>>
>> Does that help?
> 
> Or, if you just need to run some code before a template is rendered:
> 
> Menu(Loc("test", List("landing"), "test", Template{() => 
>                              println("Hit the template URL");
>                              // Handle Empty case :-)
>                              
> TemplateFinder.findAnyTemplate(List("mytemplat","index")).open_!
>                            }))
> 
> /Jeppe
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to