object ContentParser
- Alphabetic
- By Inheritance
- ContentParser
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(templateSuffixesSeq: Seq[String], parseF: (InputStream) ⇒ Box[NodeSeq], surroundF: (NodeSeq) ⇒ NodeSeq): ContentParser
A fully-specified
ContentParser
which handles multiple filename suffixes, operates on anInputStream
, and surrounds the top-level templates with the default surround -
def
apply(templateSuffix: String, parseFunction: (String) ⇒ Box[NodeSeq], surroundFunction: (NodeSeq) ⇒ NodeSeq = defaultSurround): ContentParser
A basic
ContentParser
which handles one template filename suffix, operates on a string, and surrounds the top-level templates with the default surround.A basic
ContentParser
which handles one template filename suffix, operates on a string, and surrounds the top-level templates with the default surround.- templateSuffix
the template filename suffix for which this parser will be utilized.
- parseFunction
the parse function for converting the template as a string into a
NodeSeq
.- surroundFunction
the function for surrounding the content returned by the
parseFunction
. See defaultSurround.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
val
defaultSurround: (NodeSeq) ⇒ NodeSeq
Default surround function used by
ContentParser.basic
and the built-it markdown parser which results in the template being surrounded bydefault.html
with the content located atid=content
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toInputStreamParser(simpleParser: (String) ⇒ Box[NodeSeq]): (InputStream) ⇒ Box[NodeSeq]
Convenience function to convert a simple
String => Box[NodeSeq]
content parser function into aInputStream => Box[NodeSeq]
function for satisfying theContentParser
contract.Convenience function to convert a simple
String => Box[NodeSeq]
content parser function into aInputStream => Box[NodeSeq]
function for satisfying theContentParser
contract.- simpleParser
your
String => Box[NodeSeq]
content parser- returns
your parser wrapped up to handle an
InputStream
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )