src/main/scala/net/tz/lift/snippet/DataTable.scala
changeset 21 641c7190c566
parent 15 995184977e9b
child 42 7c811cdfa4c3
--- a/src/main/scala/net/tz/lift/snippet/DataTable.scala	Sun Apr 01 23:25:17 2012 +0200
+++ b/src/main/scala/net/tz/lift/snippet/DataTable.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.util.Helpers._ // CSS transforms
 import scala.xml.NodeSeq
 
@@ -24,7 +24,7 @@
  * Template location: <code>/templates-hidden/datatable</code>.
  */
 class DataTable(cols: List[String], cells: List[List[NodeSeq]]) extends CssTr {
-  def apply(in: NodeSeq): NodeSeq = TemplateFinder.findAnyTemplate(
+  def apply(in: NodeSeq): NodeSeq = Templates(
     List("templates-hidden", "datatable")) map { xml =>
     (".field-name *" #> cols &
     ".row *" #> cells.map { vals => "td *" #> vals })(xml)