Permalink
Browse files

Merge pull request #1229 from lift/dpp_issue_1173

Closes #1173. Allow data-lift-content-id attribute in body tag to identi...
  • Loading branch information...
2 parents bcce12b + 852b135 commit 220a412673cfccbc1ad09df17e6234e2562fca09 David Pollak committed Mar 1, 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 220a412

Please sign in to comment.