diff -r f1551f9d3d3e -r 641c7190c566 src/main/scala/net/tz/lift/snippet/Loc.scala --- a/src/main/scala/net/tz/lift/snippet/Loc.scala Sun Apr 01 23:25:17 2012 +0200 +++ b/src/main/scala/net/tz/lift/snippet/Loc.scala Mon Apr 02 00:06:52 2012 +0200 @@ -1,5 +1,5 @@ /* - * Copyright 2011 Tomas Zeman + * Copyright 2011-2012 Tomas Zeman * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package net.tz.lift.snippet -import net.liftweb.http.TemplateFinder +import net.liftweb.http.Templates import net.liftweb.sitemap.Loc._ import scala.xml.NodeSeq @@ -26,10 +26,10 @@ object LocTpl { def apply(path: String): Template = Template(() => - TemplateFinder.findAnyTemplate(path split "/" toList) openOr NodeSeq.Empty) + Templates(path split "/" toList) openOr NodeSeq.Empty) def apply[T](f: T => String): ValueTemplate[T] = ValueTemplate[T]( - _.flatMap { v => TemplateFinder.findAnyTemplate(f(v) split "/" toList) + _.flatMap { v => Templates(f(v) split "/" toList) } openOr NodeSeq.Empty) }