Folks,

I'm about to check in code that unifies TemplatePF and ViewDispatchPF with:
type ViewDispatchPF = PartialFunction[List[String], Either[() =>
Can[NodeSeq], LiftView]]

This is a partial function that takes the resource search path (e.g.,
List(my_stuff, index)) and finds the appropriate NodeSeq.

The PartialFunction can return Either a () => Can[NodeSeq] or a LiftView.

This should unify template lookup across all of Lift's functions.  If the
PartialFunction needs something in the current Req, it can use a guard.

Thanks,

David

-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to