com.gilt.handlebars

DefaultHandlebarsBuilder

object DefaultHandlebarsBuilder extends PartialHelper with ProgramHelper with Loggable with Serializable

Linear Supertypes
Serializable, Serializable, Loggable, PartialHelper, ProgramHelper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultHandlebarsBuilder
  2. Serializable
  3. Serializable
  4. Loggable
  5. PartialHelper
  6. ProgramHelper
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(file: File): DefaultHandlebarsBuilder

  7. def apply(template: String): DefaultHandlebarsBuilder

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def debug(message: String, t: Throwable): Unit

    Definition Classes
    Loggable
  11. def debug(message: String, t: Any*): Unit

    Definition Classes
    Loggable
  12. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. def error(message: String, t: Throwable): Unit

    Definition Classes
    Loggable
  15. def error(message: String, t: Any*): Unit

    Definition Classes
    Loggable
  16. def filterPartials(node: Node): List[Partial]

    Filters a node and returns all of the Partial nodes contained within it.

    Filters a node and returns all of the Partial nodes contained within it. This method will filter as-is, so if a reference to a partial exists more than once duplicates will appear in the result.

    If a unique list is desired, use toSet on the resulting List.

    node

    usually a Program node result of HandlebarsGrammar

    returns

    List of Partial nodes within node

    Definition Classes
    PartialHelper
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def findAllPartials(file: File, touchedFiles: List[String] = List.empty): Map[String, File]

    Finds all partials referenced in a file and nested partial includes from THOSE partials.

    Finds all partials referenced in a file and nested partial includes from THOSE partials. Traverses the tree of handlebars partial includes recursively and aggregates the Partials found.

    Maintains a list of files traversed to avoid infinite loops from the recursion.

    TODO: probably should not throw an error, but a warning when a template is not found. A missing template could mean that it may be defined on the frontend.

    file

    file to scan for partials

    touchedFiles

    running list of files that were scanned

    returns

    Map of partialName -> java.io.File

    Definition Classes
    PartialHelper
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def getTemplates(file: File): Map[String, Handlebars]

    Definition Classes
    PartialHelper
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def info(message: String, t: Throwable): Unit

    Definition Classes
    Loggable
  23. def info(message: String, t: Any*): Unit

    Definition Classes
    Loggable
  24. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  26. def normalizePartialNames(partials: Map[String, Handlebars]): Map[String, Handlebars]

    Definition Classes
    PartialHelper
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def programFromFile(file: File): Program

    Definition Classes
    ProgramHelper
  30. def programFromString(template: String): Program

    Definition Classes
    ProgramHelper
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def warn(message: String, t: Throwable): Unit

    Definition Classes
    Loggable
  37. def warn(message: String, t: Any*): Unit

    Definition Classes
    Loggable

Inherited from Serializable

Inherited from Serializable

Inherited from Loggable

Inherited from PartialHelper

Inherited from ProgramHelper

Inherited from AnyRef

Inherited from Any

Ungrouped