equal
deleted
inserted
replaced
17 |
17 |
18 import net.liftweb.http._ |
18 import net.liftweb.http._ |
19 import scala.xml.{NodeSeq, Text} |
19 import scala.xml.{NodeSeq, Text} |
20 |
20 |
21 trait SnippetHelpers { |
21 trait SnippetHelpers { |
|
22 |
|
23 type CssTr = (NodeSeq => NodeSeq) |
|
24 |
22 def mkPath(prefix: String, l: String*) = |
25 def mkPath(prefix: String, l: String*) = |
23 (prefix :: l.toList) mkString ("/", "/", "") |
26 (prefix :: l.toList) mkString ("/", "/", "") |
24 } |
27 } |
|
28 |
|
29 trait CssTr extends Function1[NodeSeq, NodeSeq] |
25 |
30 |
26 class A(href: => String) extends Function1[NodeSeq, NodeSeq] { |
31 class A(href: => String) extends Function1[NodeSeq, NodeSeq] { |
27 def apply(in: NodeSeq): NodeSeq = <a href={href}>{in}</a> |
32 def apply(in: NodeSeq): NodeSeq = <a href={href}>{in}</a> |
28 } |
33 } |
29 |
34 |