Trait/Object

org.fusesource.scalate

TemplateSource

Related Docs: object TemplateSource | package scalate

Permalink

trait TemplateSource extends Resource

Represents the source of a template

Source
TemplateSource.scala
Version

$Revision : 1.1 $

Linear Supertypes
Resource, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TemplateSource
  2. Resource
  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

Abstract Value Members

  1. abstract def inputStream: InputStream

    Permalink
    Definition Classes
    Resource
  2. abstract def lastModified: Long

    Permalink
    Definition Classes
    Resource
  3. abstract def uri: String

    Permalink
    Definition Classes
    Resource

Concrete 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 TemplateSource to any2stringadd[TemplateSource] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TemplateSource, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TemplateSource to ArrowAssoc[TemplateSource] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def checkInitialised(): Unit

    Permalink

    Checks that we have lazily created the package and class names

    Checks that we have lazily created the package and class names

    Attributes
    protected
  8. def className: String

    Permalink

    Returns the generated fully qualified class name for code generated templates

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. var engine: TemplateEngine

    Permalink
  11. def ensuring(cond: (TemplateSource) ⇒ Boolean, msg: ⇒ Any): TemplateSource

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def extractPackageAndClassNames(uri: String): (String, String)

    Permalink
    Attributes
    protected
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  26. def packageName: String

    Permalink

    Returns the package name the generated template class will be in for code generated templates

  27. def reader: Reader

    Permalink
    Definition Classes
    Resource
  28. val reservedWords: Set[String]

    Permalink
    Attributes
    protected
  29. def simpleClassName: String

    Permalink

    Returns the generated simple class name (i.e.

    Returns the generated simple class name (i.e. without the package name) for code generated templates

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def templateType(extension: String): CustomExtensionTemplateSource

    Permalink

    Returns a new TemplateSource which uses the given template type irrespective of the actual uri file extension

    Returns a new TemplateSource which uses the given template type irrespective of the actual uri file extension

    For example this lets you load a TemplateSource then convert it to be of a given fixed type of template as follows:

    TemplateSource.fromFile("foo.txt").templateType("mustache")

  32. def templateType: Option[String]

    Permalink

    Returns the type of the template (ssp, scaml, mustache etc).

    Returns the type of the template (ssp, scaml, mustache etc).

    By default the extension is extracted from the uri but custom implementations can override this so that a uri could be "foo.html" but the extension overriden to be "mustache" for example

  33. def text: String

    Permalink
    Definition Classes
    Resource
  34. def toFile: Option[File]

    Permalink
    Definition Classes
    Resource
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def [B](y: B): (TemplateSource, B)

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

Inherited from Resource

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped