src/main/scala/net/tz/lift/snippet/Loc.scala
changeset 21 641c7190c566
parent 15 995184977e9b
--- 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 <tzeman@volny.cz>
+ * Copyright 2011-2012 Tomas Zeman <tzeman@volny.cz>
  *
  * 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)
 }