Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Closes #1173. Allow data-lift-content-id attribute in body tag to identi... #1229

Merged
merged 1 commit into from

1 participant

@dpp
Owner

...fy the id of the actual start of content

http://www.assembla.com/spaces/liftweb/tickets/1173

@dpp dpp was assigned
@dpp dpp merged commit 220a412 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2012
  1. @dpp

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

    dpp authored
    …ntify the id of the actual start of content
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  web/webkit/src/main/scala/net/liftweb/http/Templates.scala
View
1  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(' ')
Something went wrong with that request. Please try again.