Move extendsHtmlSeq which provides mkHtml to view.helpers because it's used at only views.

This commit is contained in:
takezoe
2013-06-29 15:30:24 +09:00
parent 10f2cbbc3e
commit 4370ad06ea
2 changed files with 5 additions and 5 deletions

View File

@@ -54,4 +54,9 @@ object helpers {
// convert commit id to link
.replaceAll("(^|\\W)([a-f0-9]{40})(\\W|$)", "$1<a href=\"%s/%s/%s/commit/$2\">$2</a>$3").format(context.path, repository.owner, repository.name))
implicit def extendsHtmlSeq(seq: Seq[Html]) = new {
def mkHtml(separator: String) = Html(seq.mkString(separator))
def mkHtml(separator: scala.xml.Elem) = Html(seq.mkString(separator.toString))
}
}