This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Loaded sun.reflect.GeneratedMethodAccessor92 from __JVM_DefineClass__] | |
| [Loaded sun.reflect.GeneratedMethodAccessor93 from __JVM_DefineClass__] | |
| [Loaded scala.ScalaObject from file:/Users/richard/tmp/weird/geronimo-tomcat7-javaee6-3.0.0/var/temp/geronimo-fileutils7924089668395713434.tmpdir/WEB-INF/lib/scala-library.jar] | |
| [Loaded net.liftweb.http.provider.HTTPProvider from file:/Users/richard/tmp/weird/geronimo-tomcat7-javaee6-3.0.0/var/temp/geronimo-fileutils7924089668395713434.tmpdir/WEB-INF/lib/lift-webkit_2.9.1-2.5-M4.jar] | |
| [Loaded net.liftweb.http.provider.servlet.ServletFilterProvider from file:/Users/richard/tmp/weird/geronimo-tomcat7-javaee6-3.0.0/var/temp/geronimo-fileutils7924089668395713434.tmpdir/WEB-INF/lib/lift-webkit_2.9.1-2.5-M4.jar] | |
| [Loaded net.liftweb.http.LiftFilter from file:/Users/richard/tmp/weird/geronimo-tomcat7-javaee6-3.0.0/var/temp/geronimo-fileutils7924089668395713434.tmpdir/WEB-INF/lib/lift-webkit_2.9.1-2.5-M4.jar] | |
| [Loaded scala.reflect.ScalaSignature from file:/Users/richard/tmp/weir |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tmp$ cd lift-3-demo/ | |
| lift-3-demo (master)$ ./sbt | |
| Detected sbt version 0.12.3 | |
| Starting sbt: invoke with -help for other options | |
| Downloading sbt launcher 0.12.3: | |
| From http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.12.3/sbt-launch.jar | |
| To ./.lib/0.12.3/sbt-launch.jar | |
| Using /Users/richard/.sbt/0.12.3 as sbt dir, -sbt-dir to override. | |
| Getting net.java.dev.jna jna 3.2.3 ... | |
| :: retrieving :: org.scala-sbt#boot-jna |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package code.snippet | |
| import net.liftweb.util.Helpers._ | |
| class Poems { | |
| def render = | |
| ".author *" #> "Philip Larkin" & | |
| ".title *" #> "This Be The Verse" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p data-lift="Poems"> | |
| The work of <span class="author">someone</span> includes | |
| <span class="title">something</span>. | |
| </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p> | |
| The work of <span class="author">Philip Larkin</span> includes | |
| <span class="title">This Be The Verse</span>. | |
| </p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "titles":["This Be The Verse","Aubade"] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package code.rest | |
| import net.liftweb.http.rest.RestHelper | |
| import net.liftweb.json.JsonDSL._ | |
| import net.liftweb.json.JsonAST._ | |
| object PoemResource extends RestHelper { | |
| // The database of poem titles: | |
| val poems = Map( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| For use with... | |
| scalaVersion := "2.10.2" | |
| val liftVersion = "2.5.1" | |
| "net.liftweb" %% "lift-webkit" % liftVersion % "compile", | |
| "net.liftweb" %% "lift-mongodb-record" % liftVersion, | |
| "org.specs2" %% "specs2" % "2.1" % "test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| core/util/src/main/scala/net/liftweb/util/Props.scala: def getBool(name: String): Box[Boolean] = props.get(name).map(toBoolean) // (props.get(name)) | |
| core/util/src/main/scala/net/liftweb/util/Props.scala: def getBool(name: String, defVal: Boolean): Boolean = getBool(name) openOr defVal // props.get(name).map(toBoolean(_)) getOrElse defVal | |
| core/util/src/test/scala/net/liftweb/util/BasicTypesHelpersSpec.scala: "have a toBoolean method converting any object to a reasonable Boolean value" in { | |
| core/util/src/test/scala/net/liftweb/util/BasicTypesHelpersSpec.scala: toBoolean(null) must_== false | |
| core/util/src/test/scala/net/liftweb/util/BasicTypesHelpersSpec.scala: (o: Any, result: Boolean) => toBoolean(o) must_== result | |
| persistence/mapper/src/main/scala/net/liftweb/mapper/JSONComet.scala: case x => Full(toBoolean(x)) | |
| persistence/mapper/src/main/scala/net/liftweb/mapper/MappedBoolean.scala: case (s: String) :: _ => this.set(toBoolean(s)) | |
| persistence/mapper/src/main/scala/net/liftweb/mapper/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~$ cd guess/ | |
| guess$ ls | |
| correct_guess incorrect_guess test | |
| guess$ cat test | |
| HTTP/1.1 200 OK | |
| Server: nginx/1.1.19 | |
| Date: Sat, 03 Aug 2013 11:03:49 GMT | |
| Content-Type: text/html; charset=utf-8 | |
| Content-Length: 12671 |