[Lift] Choose template in a custom Loc

2010-01-13 Thread Misha Korablin
I'm writing a custom Loc for a page and want to choose a different
template in lift:surround if a certain URL parameter is present.

Basically, I have a template like this:

lift:surround with=t1 at=content
...
/lift:surround

And at runtime I want to substitute t1 for t2 if necessary and leave
everything inside lift:surround intact.

How can I do this?


Misha
-- 
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] Choose template in a custom Loc

2010-01-12 Thread Misha Korablin
I'm writing a custom Loc for a page and want to choose a different
template in lift:surround if a certain URL parameter is present. How
can I do this?

Misha
-- 
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.