com.gilt.handlebars.scala.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.
usually a Program node result of HandlebarsGrammar
List of Partial nodes within node
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 to scan for partials
running list of files that were scanned
Map of partialName -> java.io.File
6/30/13