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