com.gilt.handlebars.partial

PartialHelper

trait PartialHelper extends ProgramHelper

Since

6/30/13

Linear Supertypes
ProgramHelper, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PartialHelper
  2. ProgramHelper
  3. AnyRef
  4. 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. 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

  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. 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

  13. final def getClass(): Class[_]

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

  15. def hashCode(): Int

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

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

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

  19. final def notify(): Unit

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

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

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

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

    Definition Classes
    AnyRef
  24. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ProgramHelper

Inherited from AnyRef

Inherited from Any

Ungrouped