Skip to content

Commit

Permalink
Merge pull request #1229 from lift/dpp_issue_1173
Browse files Browse the repository at this point in the history
Closes #1173. Allow data-lift-content-id attribute in body tag to identi...
  • Loading branch information
David Pollak committed Mar 1, 2012
2 parents bcce12b + 852b135 commit 220a412
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/webkit/src/main/scala/net/liftweb/http/Templates.scala
Expand Up @@ -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(' ')
Expand Down

0 comments on commit 220a412

Please sign in to comment.