Object

com.gilt.handlebars.scala.partial

PartialHelper

Related Doc: package partial

Permalink

object PartialHelper extends ProgramHelper

Since

6/30/13

Linear Supertypes
ProgramHelper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PartialHelper
  2. ProgramHelper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  8. def filterPartials(node: Node): Seq[Partial]

    Permalink

    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

  9. def finalize(): Unit

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getTemplates[T](file: File)(implicit contextFactory: BindingFactory[T]): Map[String, Handlebars[T]]

    Permalink
  13. def hashCode(): Int

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

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

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

    Permalink
  17. final def notify(): Unit

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ProgramHelper

Inherited from AnyRef

Inherited from Any

Ungrouped