diff -r f1551f9d3d3e -r 641c7190c566 src/main/scala/net/tz/lift/snippet/DataTable.scala --- 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 + * 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.util.Helpers._ // CSS transforms import scala.xml.NodeSeq @@ -24,7 +24,7 @@ * Template location: /templates-hidden/datatable. */ 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)