-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduced number of artifacts/projects down to two;
wandlet now inclusive
- Loading branch information
Showing
9 changed files
with
40 additions
and
52 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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
24 changes: 24 additions & 0 deletions
24
scala-lib/src/main/scala/org/wandledi/wandlet/scala/Page.scala
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.wandledi.wandlet.scala | ||
|
||
import org.wandledi.Scroll | ||
import org.wandledi.wandlet.Response | ||
import org.wandledi.scala.SelectableImpl | ||
import org.wandledi.Selector | ||
import org.wandledi.PathSelector | ||
|
||
class Page(val file: String) extends SelectableImpl(new Scroll) with Response { | ||
override def getFile = file | ||
|
||
/** | ||
* Extracts the target Element. | ||
* | ||
* @param sel Target Element to extract. | ||
* @param block Block to execute in the context of the extracted Element. | ||
*/ | ||
def extract(sel: Selector)(block: => Unit = {}) { | ||
get(new PathSelector).extract(sel) | ||
using(this at sel)(block) | ||
} | ||
|
||
override def toString = "scala.Page(" + getFile + ")" | ||
} |
This file contains 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
24 changes: 0 additions & 24 deletions
24
wandlet-scala/src/main/scala/org/wandledi/wandlet/scala/Page.scala
This file was deleted.
Oops, something went wrong.