Class/Object

org.fusesource.scalate

DefaultRenderContext

Related Docs: object DefaultRenderContext | package scalate

Permalink

class DefaultRenderContext extends RenderContext

Default implementation of org.fusesource.scalate.RenderContext

Source
DefaultRenderContext.scala
Linear Supertypes
RenderContext, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultRenderContext
  2. RenderContext
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DefaultRenderContext(_requestUri: String, engine: TemplateEngine, out: PrintWriter = new PrintWriter(new StringWriter()))

    Permalink

Type Members

  1. case class Unescaped(text: String) extends Product with Serializable

    Permalink

    Used to represent some text which does not need escaping

    Used to represent some text which does not need escaping

    Definition Classes
    RenderContext

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to any2stringadd[DefaultRenderContext] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DefaultRenderContext, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to ArrowAssoc[DefaultRenderContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. def <<(v: Any): Unit

    Permalink

    Renders the provided value and inserts it into the final rendered document without sanitizing the value.

    Renders the provided value and inserts it into the final rendered document without sanitizing the value.

    Definition Classes
    DefaultRenderContextRenderContext
  6. def <<<(v: Any): Unit

    Permalink

    Renders the provided value, sanitizes any XML special characters and inserts it into the final rendered document.

    Renders the provided value, sanitizes any XML special characters and inserts it into the final rendered document.

    Definition Classes
    DefaultRenderContextRenderContext
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def attribute[T](name: String): T

    Permalink

    Returns the attribute of the given type or a org.fusesource.scalate.NoValueSetException exception is thrown

    Returns the attribute of the given type or a org.fusesource.scalate.NoValueSetException exception is thrown

    Definition Classes
    RenderContext
  10. def attributeKeys: List[String]

    Permalink

    Sorted list of attribute keys

    Sorted list of attribute keys

    Definition Classes
    RenderContext
  11. def attributeOrElse[T](name: String, defaultValue: ⇒ T): T

    Permalink

    Returns the attribute of the given name and type or the default value if it is not available

    Returns the attribute of the given name and type or the default value if it is not available

    Definition Classes
    RenderContext
  12. val attributes: AttributeMap

    Permalink

    Access the attributes available in this context

    Access the attributes available in this context

    Definition Classes
    DefaultRenderContextRenderContext
  13. def blankString: String

    Permalink
    Attributes
    protected
    Definition Classes
    RenderContext
  14. def capture(template: Template): String

    Permalink

    Evaluates the template capturing any output written to this page context during the body evaluation

    Evaluates the template capturing any output written to this page context during the body evaluation

    Definition Classes
    DefaultRenderContextRenderContext
  15. def capture(body: ⇒ Unit): String

    Permalink

    Evaluates the body capturing any output written to this page context during the body evaluation

    Evaluates the body capturing any output written to this page context during the body evaluation

    Definition Classes
    DefaultRenderContextRenderContext
  16. def captureAttribute(name: String)(body: ⇒ Unit): Unit

    Permalink

    Captured the body of the function call then sets it to the given attribute value

    Captured the body of the function call then sets it to the given attribute value

    Definition Classes
    RenderContext
  17. def captureAttributeAppend(name: String)(body: ⇒ Unit): Unit

    Permalink

    Captured the body of the function call then append it to the given attribute value

    Captured the body of the function call then append it to the given attribute value

    Definition Classes
    RenderContext
  18. def captureNodeSeq(template: Template): NodeSeq

    Permalink

    Captures the text of the template rendering and then parses it as markup

    Captures the text of the template rendering and then parses it as markup

    Definition Classes
    RenderContext
  19. def captureNodeSeq(body: ⇒ Unit): NodeSeq

    Permalink

    Captures the text of the body and then parses it as markup

    Captures the text of the body and then parses it as markup

    Definition Classes
    RenderContext
  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def collection(objects: Iterable[AnyRef], viewName: String = "index", separator: ⇒ Any = blankString): Unit

    Permalink

    Renders a collection of model objects with an optional separator

    Renders a collection of model objects with an optional separator

    Definition Classes
    RenderContext
  22. var currentTemplate: String

    Permalink
    Definition Classes
    RenderContext
  23. def dateFormat: DateFormat

    Permalink
    Definition Classes
    RenderContext
  24. def dateFormat_=(value: DateFormat): Unit

    Permalink
    Definition Classes
    RenderContext
  25. val engine: TemplateEngine

    Permalink
    Definition Classes
    DefaultRenderContextRenderContext
  26. def ensuring(cond: (DefaultRenderContext) ⇒ Boolean, msg: ⇒ Any): DefaultRenderContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to Ensuring[DefaultRenderContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: (DefaultRenderContext) ⇒ Boolean): DefaultRenderContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to Ensuring[DefaultRenderContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: Boolean, msg: ⇒ Any): DefaultRenderContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to Ensuring[DefaultRenderContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean): DefaultRenderContext

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to Ensuring[DefaultRenderContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  32. def escape(v: Any): Unit

    Permalink

    Ensures that the string value of the parameter is always markup escaped

    Ensures that the string value of the parameter is always markup escaped

    Definition Classes
    RenderContext
  33. var escapeMarkup: Boolean

    Permalink

    Whether or not markup sensitive characters for HTML/XML elements like & > < are escaped or not

    Whether or not markup sensitive characters for HTML/XML elements like & > < are escaped or not

    Definition Classes
    RenderContext
  34. def filter(name: String, content: String): String

    Permalink
    Definition Classes
    RenderContext
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def flush(): Unit

    Permalink
  37. def format(pattern: String, args: AnyRef*): String

    Permalink

    Returns the formatted string using the locale of the users request or the default locale if not available

    Returns the formatted string using the locale of the users request or the default locale if not available

    Definition Classes
    RenderContext
  38. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to StringFormat[DefaultRenderContext] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  39. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  40. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  41. def include(path: String, layout: Boolean, extraBindings: Iterable[Binding]): Unit

    Permalink

    Includes the given template path

    Includes the given template path

    layout

    if true then applying the layout the included template

    Definition Classes
    RenderContext
  42. def include(path: String, layout: Boolean): Unit

    Permalink
    Definition Classes
    RenderContext
  43. def include(path: String): Unit

    Permalink
    Definition Classes
    RenderContext
  44. def inject[T](implicit manifest: ClassTag[T]): T

    Permalink

    Creates an instance of the given given type using dependency injection to inject the necessary values into the object

    Creates an instance of the given given type using dependency injection to inject the necessary values into the object

    Definition Classes
    RenderContext
  45. def introspect(aType: Class[_]): Introspector[_]

    Permalink
    Definition Classes
    RenderContext
  46. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  47. def layout(path: String, attrMap: Map[String, Any] = Map())(body: ⇒ Unit): Unit

    Permalink

    Renders the given template with optional attributes passing the body block as the *body* attribute so that it can be layered out using the template.

    Renders the given template with optional attributes passing the body block as the *body* attribute so that it can be layered out using the template.

    Definition Classes
    RenderContext
  48. def load(uri: String): String

    Permalink

    Loads the given template or file as a String for inclusion into the current page.

    Loads the given template or file as a String for inclusion into the current page.

    Useful if you want to include some client side template, particularly with a .jade extension

    Definition Classes
    RenderContext
  49. def locale: Locale

    Permalink
    Definition Classes
    RenderContext
  50. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  51. var noneString: String

    Permalink

    Default string used to output None values

    Default string used to output None values

    Definition Classes
    RenderContext
  52. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  53. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  54. var nullString: String

    Permalink

    Default string used to output null values

    Default string used to output null values

    Definition Classes
    RenderContext
  55. def numberFormat: NumberFormat

    Permalink
    Definition Classes
    RenderContext
  56. def numberFormat_=(value: NumberFormat): Unit

    Permalink
    Definition Classes
    RenderContext
  57. var out: PrintWriter

    Permalink
  58. def percent(number: Number): String

    Permalink
    Definition Classes
    RenderContext
  59. def percentFormat: NumberFormat

    Permalink
    Definition Classes
    RenderContext
  60. def percentFormat_=(value: NumberFormat): Unit

    Permalink
    Definition Classes
    RenderContext
  61. def removeOldAttributes: Boolean

    Permalink

    Should we remove attributes from the context after we've rendered a child request?

    Should we remove attributes from the context after we've rendered a child request?

    Attributes
    protected
    Definition Classes
    RenderContext
  62. def render(path: String, attributeMap: Map[String, Any] = Map()): Unit

    Permalink

    Renders the given template with optional attributes

    Renders the given template with optional attributes

    Definition Classes
    RenderContext
  63. def requestFile: Option[File]

    Permalink

    Returns the file for the given request resource

    Returns the file for the given request resource

    Definition Classes
    DefaultRenderContextRenderContext
  64. def requestResource: Option[Resource]

    Permalink

    Returns the Resource of the request

    Returns the Resource of the request

    Definition Classes
    DefaultRenderContextRenderContext
  65. def requestUri: String

    Permalink

    Returns the request URI

    Returns the request URI

    Definition Classes
    DefaultRenderContextRenderContext
  66. def resolveUri(path: String): String

    Permalink
    Attributes
    protected
    Definition Classes
    RenderContext
  67. def resource[T]: T

    Permalink

    Returns the JAXRS resource bean of the given type or a org.fusesource.scalate.NoValueSetException exception is thrown

    Returns the JAXRS resource bean of the given type or a org.fusesource.scalate.NoValueSetException exception is thrown

    Definition Classes
    RenderContext
  68. def resourceOrElse[T](defaultValue: T): T

    Permalink

    Returns the JAXRS resource bean of the given type or the default value if it is not available

    Returns the JAXRS resource bean of the given type or the default value if it is not available

    Definition Classes
    RenderContext
  69. def setAttribute(name: String, value: Option[Any]): Unit

    Permalink
    Definition Classes
    RenderContext
  70. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  71. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  72. implicit def toStringPair(entry: (Symbol, Any)): (String, Any)

    Permalink

    Allows a symbol to be used with arguments to the { @link render } or { @link layout } method such as render("foo.ssp", 'foo -> 123, 'bar -> 456) {...}

    Allows a symbol to be used with arguments to the { @link render } or { @link layout } method such as render("foo.ssp", 'foo -> 123, 'bar -> 456) {...}

    Definition Classes
    RenderContext
  73. def unescape(v: Any): Unit

    Permalink

    Ensures that the string value of the parameter is not markup escaped

    Ensures that the string value of the parameter is not markup escaped

    Definition Classes
    RenderContext
  74. def uri(u: String): String

    Permalink

    Allows conversion of an absolute URL starting with "/" to be converted using the prefix of a web application

    Allows conversion of an absolute URL starting with "/" to be converted using the prefix of a web application

    Definition Classes
    RenderContext
  75. def uri(file: File): Option[String]

    Permalink

    Returns a local link to the given file which should be within the [sourceDirectories]

    Returns a local link to the given file which should be within the [sourceDirectories]

    Definition Classes
    RenderContext
  76. def using[T](model: AnyRef)(op: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    RenderContext
  77. def value(any: Any, shouldSanitize: Boolean = escapeMarkup): Any

    Permalink
    Definition Classes
    RenderContext
  78. def valueEscaped(any: Any): Any

    Permalink
    Definition Classes
    RenderContext
  79. def valueUnescaped(any: Any): Any

    Permalink
    Definition Classes
    RenderContext
  80. def view(model: AnyRef, viewName: String = "index"): Unit

    Permalink

    Renders the view of the given model object, looking for the view in packageName/className.viewName.ext

    Renders the view of the given model object, looking for the view in packageName/className.viewName.ext

    Definition Classes
    RenderContext
  81. var viewPostfixes: List[String]

    Permalink
    Definition Classes
    RenderContext
  82. var viewPrefixes: List[String]

    Permalink
    Definition Classes
    RenderContext
  83. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  85. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  86. def withAttributes[T](attrMap: Map[String, Any])(block: ⇒ T): T

    Permalink

    Uses the new sets of attributes for the given block, then replace them all (and remove any newly defined attributes)

    Uses the new sets of attributes for the given block, then replace them all (and remove any newly defined attributes)

    Definition Classes
    RenderContext
  87. def withUri[T](uri: String)(block: ⇒ T): T

    Permalink
    Definition Classes
    RenderContext
  88. var wrapCssInCData: Boolean

    Permalink

    Whether we should escape CSS in CDATA sections when using the CSS filter

    Whether we should escape CSS in CDATA sections when using the CSS filter

    Definition Classes
    RenderContext
  89. def [B](y: B): (DefaultRenderContext, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DefaultRenderContext to ArrowAssoc[DefaultRenderContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from RenderContext

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DefaultRenderContext to any2stringadd[DefaultRenderContext]

Inherited by implicit conversion StringFormat from DefaultRenderContext to StringFormat[DefaultRenderContext]

Inherited by implicit conversion Ensuring from DefaultRenderContext to Ensuring[DefaultRenderContext]

Inherited by implicit conversion ArrowAssoc from DefaultRenderContext to ArrowAssoc[DefaultRenderContext]

Ungrouped