Permalink
Browse files

Closes #1173. Allow data-lift-content-id attribute in body tag to ide…

…ntify the id of the actual start of content
  • Loading branch information...
1 parent dff0b6a commit 852b135e4ba36ba6644c8b18c0f018d98d8a4b17 @dpp dpp committed Jan 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 web/webkit/src/main/scala/net/liftweb/http/Templates.scala
@@ -131,6 +131,7 @@ object Templates {
case e: Elem if e.label == "html" =>
e.child.flatMap {
case e: Elem if e.label == "body" => {
+ e.attribute("data-lift-content-id").headOption.map(_.text) orElse
e.attribute("class").flatMap {
ns => {
val clz = ns.text.charSplit(' ')

0 comments on commit 852b135

Please sign in to comment.