Well .. findTemplate first splits the name argument and does a lookup for that path. If template is not found then it looks in templates- hidden.
But besides that LiftRules.addTemplateBefore/After would not suffice? See type TemplatePf = PartialFunction[RequestState,() => Can[NodeSeq]] so you should be able to load the template from virtually anywhere ... Br's, Marius On Nov 3, 6:19 pm, Tim Perrett <[EMAIL PROTECTED]> wrote: > Hey guys, > > Myself and Ty have just been chatting about lifts template loader... > right now, is there a way of adding additional places to look for lift > templates? > > I see this being of use for two reasons: > > - loading page content from a database (which a lot of apps do). The > only thing with this would then be how to cache the pages in a > lift'esq manner (as i know the lift rational doesnt like caching) > > - loading page content from elsewhere on a filesystem other than the > webapp folder > > Just a bit of sudo code, but something like this would be good: > > object MyDatabaseLoader { ... } > > LiftRules.templateLoaders = List(MyDatabaseLoader, > defaultTemplateLoader) > > Thoughts? > > Cheers, Tim --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---